Make WordPress Core


Ignore:
Timestamp:
11/21/2011 03:35:57 PM (14 years ago)
Author:
nacin
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/admin-header.php

    r19324 r19374  
    115115elseif ( is_user_admin() )
    116116    do_action('user_admin_notices');
    117 else
     117elseif ( 'about' != $current_screen->parent_base )
    118118    do_action('admin_notices');
    119119
    120 do_action('all_admin_notices');
     120if ( 'about' != $current_screen->parent_base )
     121    do_action('all_admin_notices');
    121122
    122123if ( $parent_file == 'options-general.php' )
Note: See TracChangeset for help on using the changeset viewer.