WordPress.org

Make WordPress Core


Ignore:
Timestamp:
01/04/2010 04:58:43 PM (10 years ago)
Author:
ryan
Message:

More custom post type support. Props scribu. see #9674

File:
1 edited

Legend:

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

    r11930 r12597  
    4646            $class[] = 'wp-has-submenu';
    4747
    48         if ( ( $parent_file && $item[2] == $parent_file ) || strcmp($self, $item[2]) == 0 ) {
     48        if ( ( $parent_file && $item[2] == $parent_file ) || ( false === strpos($parent_file, '?') && strcmp($self, $item[2]) == 0 ) ) {
    4949            if ( !empty($submenu[$item[2]]) )
    5050                $class[] = 'wp-has-current-submenu wp-menu-open';
Note: See TracChangeset for help on using the changeset viewer.