Ticket #16856: menu.php.int.diff
| File menu.php.int.diff, 837 bytes (added by , 15 years ago) |
|---|
-
wp-admin/menu.php
123 123 124 124 foreach ( (array) get_post_types( array('show_ui' => true, '_builtin' => false) ) as $ptype ) { 125 125 $ptype_obj = get_post_type_object( $ptype ); 126 $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.126 $ptype_menu_position = isset( $ptype_obj->menu_position ) ? $ptype_obj->menu_position : $_wp_last_object_menu++; // If we're to use $_wp_last_object_menu, increment it first. 127 127 $ptype_for_id = sanitize_html_class( $ptype ); 128 128 if ( is_string( $ptype_obj->menu_icon ) ) { 129 129 $menu_icon = esc_url( $ptype_obj->menu_icon );