WordPress.org

Make WordPress Core

Changeset 19048


Ignore:
Timestamp:
10/23/2011 06:45:06 PM (9 years ago)
Author:
ryan
Message:

Fix sub menu highlighting for post type pages. see #13662

File:
1 edited

Legend:

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

    r18942 r19048  
    127127                $self_type = ! empty( $typenow ) ? $self . '?post_type=' . $typenow : 'nothing';
    128128
    129                 if ( isset( $submenu_file ) && $submenu_file == $sub_item[2] ) {
    130                     $class[] = 'current';
     129                if ( isset( $submenu_file ) ) {
     130                    if ( $submenu_file == $sub_item[2] )
     131                        $class[] = 'current';
    131132                // If plugin_page is set the parent must either match the current page or not physically exist.
    132133                // This allows plugin pages with the same hook to exist under different parents.
Note: See TracChangeset for help on using the changeset viewer.