Make WordPress Core


Ignore:
Timestamp:
05/17/2010 04:39:36 PM (15 years ago)
Author:
ryan
Message:

Set show_ui to true for post and page. Exclude _builtin = true from areas where we need to special case builtin types. fixes #13403

File:
1 edited

Legend:

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

    r14654 r14713  
    114114$_wp_last_object_menu = 25; // The index of the last top-level menu in the object menu group
    115115
    116 foreach ( (array) get_post_types( array('show_ui' => true) ) as $ptype ) {
     116foreach ( (array) get_post_types( array('show_ui' => true, '_builtin' => false) ) as $ptype ) {
    117117    $ptype_obj = get_post_type_object( $ptype );
    118118    $ptype_menu_position = is_int( $ptype_obj->menu_position ) ? $ptype_obj->menu_position : $_wp_last_object_menu++; // If we're to use $_wp_last_object_menu, increment it first.
Note: See TracChangeset for help on using the changeset viewer.