mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-03 08:40:10 +00:00
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:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user