Changeset 15844 for trunk/wp-admin/menu.php
- Timestamp:
- 10/19/2010 07:58:02 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/menu.php
r15747 r15844 106 106 $_wp_last_object_menu = 25; // The index of the last top-level menu in the object menu group 107 107 108 foreach ( (array) get_post_types( array('show_ui' => true, '_builtin' => false ) ) as $ptype ) {108 foreach ( (array) get_post_types( array('show_ui' => true, '_builtin' => false, 'show_in_menu' => true ) ) as $ptype ) { 109 109 $ptype_obj = get_post_type_object( $ptype ); 110 // Check if it should be a submenu. 111 if ( $ptype_obj->show_in_menu !== true ) 112 continue; 110 113 $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. 111 114 $ptype_for_id = sanitize_html_class( $ptype );
Note: See TracChangeset
for help on using the changeset viewer.