WordPress.org

Make WordPress Core


Ignore:
Timestamp:
10/19/2010 07:58:02 AM (9 years ago)
Author:
nacin
Message:

Introduce show_in_menu for register_post_type. Allows post types to be a submenu. Accepts boolean and also a parent base. With help from duck_. fixes #14145.

File:
1 edited

Legend:

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

    r14127 r15844  
    4848            $class[] = 'wp-has-submenu';
    4949
    50         if ( ( $parent_file && $item[2] == $parent_file ) || ( false === strpos($parent_file, '?') && $self == $item[2] ) ) {
     50        if ( ( $parent_file && $item[2] == $parent_file ) || ( empty($typenow) && $self == $item[2] ) ) {
    5151            if ( !empty($submenu[$item[2]]) )
    5252                $class[] = 'wp-has-current-submenu wp-menu-open';
Note: See TracChangeset for help on using the changeset viewer.