mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-22 07:22:01 +01:00
Menu back-compat fixes. see #7552
git-svn-id: http://svn.automattic.com/wordpress/trunk@8708 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
d5b7d348b5
commit
417d768c10
@ -616,8 +616,8 @@ function get_plugin_page_hookname( $plugin_page, $parent_page ) {
|
||||
else
|
||||
if ( isset( $admin_page_hooks[$parent] ))
|
||||
$page_type = $admin_page_hooks[$parent];
|
||||
} else if ( isset( $admin_page_hooks[$parent_page] ) ) {
|
||||
$page_type = $admin_page_hooks[$parent_page];
|
||||
} else if ( isset( $admin_page_hooks[$parent] ) ) {
|
||||
$page_type = $admin_page_hooks[$parent];
|
||||
}
|
||||
|
||||
$plugin_name = preg_replace( '!\.php!', '', $plugin_page );
|
||||
|
@ -75,6 +75,11 @@ $menu[25] = array( __('Plugins'), 'activate_plugins', 'plugins.php' );
|
||||
$submenu['plugins.php'][10] = array( __('Plugin Editor'), 'edit_plugins', 'plugin-editor.php' );
|
||||
$submenu['plugins.php'][15] = array(__('Install Plugins'), 'install_plugins', 'plugin-install.php');
|
||||
|
||||
// Back-compat for old top-levels
|
||||
$_wp_real_parent_file['post.php'] = 'edit.php';
|
||||
$_wp_real_parent_file['post-new.php'] = 'edit.php';
|
||||
$_wp_real_parent_file['edit-comments.php'] = 'edit.php';
|
||||
|
||||
do_action('_admin_menu');
|
||||
|
||||
// Create list of page plugin hook names.
|
||||
|
Loading…
Reference in New Issue
Block a user