WordPress.org

Make WordPress Core

Ticket #44875: menu.diff

File menu.diff, 681 bytes (added by stiofansisland, 22 months ago)
  • menu.php

     
    106106        if ( $ptype_obj->show_in_menu !== true ) {
    107107                continue;
    108108        }
    109         $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.
     109        $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.
    110110        $ptype_for_id        = sanitize_html_class( $ptype );
    111111
    112112        $menu_icon = 'dashicons-admin-post';