Ticket #41980: 41980.diff
File 41980.diff, 666 bytes (added by , 7 years ago) |
---|
-
src/wp-admin/menu.php
96 96 foreach ( array_merge( $builtin, $types ) as $ptype ) { 97 97 $ptype_obj = get_post_type_object( $ptype ); 98 98 // Check if it should be a submenu. 99 if ( $ptype_obj->show_in_menu != =true )99 if ( $ptype_obj->show_in_menu != true ) 100 100 continue; 101 101 $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. 102 102 $ptype_for_id = sanitize_html_class( $ptype );