mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-05 07:58:35 +01:00
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:
parent
1b236b4b9d
commit
c3b1b5d5e3
@ -67,7 +67,7 @@ if ( isset($_GET['action']) && ( -1 != $_GET['action'] || -1 != $_GET['action2']
|
|||||||
|
|
||||||
if ( empty($title) )
|
if ( empty($title) )
|
||||||
$title = __('Edit Pages');
|
$title = __('Edit Pages');
|
||||||
$parent_file = 'edit.php';
|
$parent_file = 'edit-pages.php';
|
||||||
wp_enqueue_script('inline-edit-post');
|
wp_enqueue_script('inline-edit-post');
|
||||||
|
|
||||||
$post_stati = array( // array( adj, noun )
|
$post_stati = array( // array( adj, noun )
|
||||||
|
@ -62,7 +62,7 @@ break;
|
|||||||
|
|
||||||
case 'edit':
|
case 'edit':
|
||||||
$title = __('Edit Category');
|
$title = __('Edit Category');
|
||||||
$parent_file = 'edit.php';
|
$parent_file = 'link-manager.php';
|
||||||
$submenu_file = 'edit-link-categories.php';
|
$submenu_file = 'edit-link-categories.php';
|
||||||
require_once ('admin-header.php');
|
require_once ('admin-header.php');
|
||||||
$cat_ID = (int) $_GET['cat_ID'];
|
$cat_ID = (int) $_GET['cat_ID'];
|
||||||
|
@ -10,7 +10,8 @@
|
|||||||
|
|
||||||
/** Load WordPress Administration Bootstrap */
|
/** Load WordPress Administration Bootstrap */
|
||||||
require_once('admin.php');
|
require_once('admin.php');
|
||||||
$parent_file = 'edit.php';
|
$parent_file = 'tools.php';
|
||||||
|
$submenu_file = 'import.php';
|
||||||
$title = __('Import Blogroll');
|
$title = __('Import Blogroll');
|
||||||
|
|
||||||
$step = $_POST['step'];
|
$step = $_POST['step'];
|
||||||
|
@ -41,7 +41,7 @@ if ( empty($order_by) )
|
|||||||
$order_by = 'order_name';
|
$order_by = 'order_name';
|
||||||
|
|
||||||
$title = __('Edit Links');
|
$title = __('Edit Links');
|
||||||
$this_file = $parent_file = 'edit.php';
|
$this_file = $parent_file = 'link-manager.php';
|
||||||
include_once ("./admin-header.php");
|
include_once ("./admin-header.php");
|
||||||
|
|
||||||
if (!current_user_can('manage_links'))
|
if (!current_user_can('manage_links'))
|
||||||
|
@ -53,7 +53,7 @@ if ( isset($_GET['inline']) ) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
$title = __('Upload New Media');
|
$title = __('Upload New Media');
|
||||||
$parent_file = 'edit.php';
|
$parent_file = 'upload.php';
|
||||||
require_once('admin-header.php'); ?>
|
require_once('admin-header.php'); ?>
|
||||||
<div class="wrap">
|
<div class="wrap">
|
||||||
<?php screen_icon(); ?>
|
<?php screen_icon(); ?>
|
||||||
|
@ -195,14 +195,14 @@ $action = isset($_GET['action']) ? $_GET['action'] : 'upgrade-core';
|
|||||||
|
|
||||||
if ( 'upgrade-core' == $action ) {
|
if ( 'upgrade-core' == $action ) {
|
||||||
$title = __('Upgrade WordPress');
|
$title = __('Upgrade WordPress');
|
||||||
$parent_file = 'index.php';
|
$parent_file = 'tools.php';
|
||||||
require_once('admin-header.php');
|
require_once('admin-header.php');
|
||||||
core_upgrade_preamble();
|
core_upgrade_preamble();
|
||||||
include('admin-footer.php');
|
include('admin-footer.php');
|
||||||
} elseif ( 'do-core-upgrade' == $action ) {
|
} elseif ( 'do-core-upgrade' == $action ) {
|
||||||
check_admin_referer('upgrade-core');
|
check_admin_referer('upgrade-core');
|
||||||
$title = __('Upgrade WordPress');
|
$title = __('Upgrade WordPress');
|
||||||
$parent_file = 'index.php';
|
$parent_file = 'tools.php';
|
||||||
// do the (un)dismiss actions before headers,
|
// do the (un)dismiss actions before headers,
|
||||||
// so that they can redirect
|
// so that they can redirect
|
||||||
if ( isset( $_POST['dismiss'] ) )
|
if ( isset( $_POST['dismiss'] ) )
|
||||||
|
@ -130,7 +130,7 @@ if ( isset($_GET['action']) ) {
|
|||||||
if ( 'upgrade-plugin' == $action ) {
|
if ( 'upgrade-plugin' == $action ) {
|
||||||
check_admin_referer('upgrade-plugin_' . $plugin);
|
check_admin_referer('upgrade-plugin_' . $plugin);
|
||||||
$title = __('Upgrade Plugin');
|
$title = __('Upgrade Plugin');
|
||||||
$parent_file = 'index.php';
|
$parent_file = 'plugins.php';
|
||||||
require_once('admin-header.php');
|
require_once('admin-header.php');
|
||||||
do_plugin_upgrade($plugin);
|
do_plugin_upgrade($plugin);
|
||||||
include('admin-footer.php');
|
include('admin-footer.php');
|
||||||
|
@ -101,7 +101,7 @@ if ( isset($_GET['find_detached'] ) ) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
$title = __('Media Library');
|
$title = __('Media Library');
|
||||||
$parent_file = 'edit.php';
|
$parent_file = 'upload.php';
|
||||||
|
|
||||||
if ( ! isset( $_GET['paged'] ) || $_GET['paged'] < 1 )
|
if ( ! isset( $_GET['paged'] ) || $_GET['paged'] < 1 )
|
||||||
$_GET['paged'] = 1;
|
$_GET['paged'] = 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user