Ticket #16856: 16856.diff
| File 16856.diff, 795 bytes (added by , 15 years ago) |
|---|
-
wp-admin/menu.php
112 112 // Check if it should be a submenu. 113 113 if ( $ptype_obj->show_in_menu !== true ) 114 114 continue; 115 $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.115 $ptype_menu_position = is_numeric( $ptype_obj->menu_position ) ? $ptype_obj->menu_position : ++$_wp_last_object_menu; // If we're to use $_wp_last_object_menu, increment it first. 116 116 $ptype_for_id = sanitize_html_class( $ptype ); 117 117 if ( is_string( $ptype_obj->menu_icon ) ) { 118 118 $menu_icon = esc_url( $ptype_obj->menu_icon );