Fix menu parents. see #8421

git-svn-id: http://svn.automattic.com/wordpress/trunk@9967 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2008-11-29 18:09:09 +00:00
parent 1b236b4b9d
commit c3b1b5d5e3
8 changed files with 12 additions and 11 deletions

View File

@ -67,7 +67,7 @@ if ( isset($_GET['action']) && ( -1 != $_GET['action'] || -1 != $_GET['action2']
if ( empty($title) )
$title = __('Edit Pages');
$parent_file = 'edit.php';
$parent_file = 'edit-pages.php';
wp_enqueue_script('inline-edit-post');
$post_stati = array( // array( adj, noun )

View File

@ -62,7 +62,7 @@ break;
case 'edit':
$title = __('Edit Category');
$parent_file = 'edit.php';
$parent_file = 'link-manager.php';
$submenu_file = 'edit-link-categories.php';
require_once ('admin-header.php');
$cat_ID = (int) $_GET['cat_ID'];

View File

@ -10,7 +10,8 @@
/** Load WordPress Administration Bootstrap */
require_once('admin.php');
$parent_file = 'edit.php';
$parent_file = 'tools.php';
$submenu_file = 'import.php';
$title = __('Import Blogroll');
$step = $_POST['step'];
@ -141,4 +142,4 @@ if ( ! $blogrolling )
include('admin-footer.php');
?>
?>

View File

@ -41,7 +41,7 @@ if ( empty($order_by) )
$order_by = 'order_name';
$title = __('Edit Links');
$this_file = $parent_file = 'edit.php';
$this_file = $parent_file = 'link-manager.php';
include_once ("./admin-header.php");
if (!current_user_can('manage_links'))

View File

@ -53,7 +53,7 @@ if ( isset($_GET['inline']) ) {
}
$title = __('Upload New Media');
$parent_file = 'edit.php';
$parent_file = 'upload.php';
require_once('admin-header.php'); ?>
<div class="wrap">
<?php screen_icon(); ?>

View File

@ -195,14 +195,14 @@ $action = isset($_GET['action']) ? $_GET['action'] : 'upgrade-core';
if ( 'upgrade-core' == $action ) {
$title = __('Upgrade WordPress');
$parent_file = 'index.php';
$parent_file = 'tools.php';
require_once('admin-header.php');
core_upgrade_preamble();
include('admin-footer.php');
} elseif ( 'do-core-upgrade' == $action ) {
check_admin_referer('upgrade-core');
$title = __('Upgrade WordPress');
$parent_file = 'index.php';
$parent_file = 'tools.php';
// do the (un)dismiss actions before headers,
// so that they can redirect
if ( isset( $_POST['dismiss'] ) )
@ -213,4 +213,4 @@ if ( 'upgrade-core' == $action ) {
if ( isset( $_POST['upgrade'] ) )
do_core_upgrade();
include('admin-footer.php');
}?>
}?>

View File

@ -130,7 +130,7 @@ if ( isset($_GET['action']) ) {
if ( 'upgrade-plugin' == $action ) {
check_admin_referer('upgrade-plugin_' . $plugin);
$title = __('Upgrade Plugin');
$parent_file = 'index.php';
$parent_file = 'plugins.php';
require_once('admin-header.php');
do_plugin_upgrade($plugin);
include('admin-footer.php');

View File

@ -101,7 +101,7 @@ if ( isset($_GET['find_detached'] ) ) {
}
$title = __('Media Library');
$parent_file = 'edit.php';
$parent_file = 'upload.php';
if ( ! isset( $_GET['paged'] ) || $_GET['paged'] < 1 )
$_GET['paged'] = 1;