Set $parent_file for post-new.php when show_in_menu is a file. Provides for correct top-level highlighting. $submenu_file remains set to expect a post-new.php menu. see #19125.

git-svn-id: https://develop.svn.wordpress.org/trunk@19374 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin
2011-11-21 15:35:57 +00:00
parent 969799b63a
commit 7c181a42bf
7 changed files with 19 additions and 11 deletions

View File

@@ -114,10 +114,11 @@ if ( is_network_admin() )
do_action('network_admin_notices');
elseif ( is_user_admin() )
do_action('user_admin_notices');
else
elseif ( 'about' != $current_screen->parent_base )
do_action('admin_notices');
do_action('all_admin_notices');
if ( 'about' != $current_screen->parent_base )
do_action('all_admin_notices');
if ( $parent_file == 'options-general.php' )
require(ABSPATH . 'wp-admin/options-head.php');