Make WordPress Core

Ticket #41980: 41980.diff

File 41980.diff, 666 bytes (added by truongwp, 7 years ago)
  • src/wp-admin/menu.php

     
    9696foreach ( array_merge( $builtin, $types ) as $ptype ) {
    9797        $ptype_obj = get_post_type_object( $ptype );
    9898        // Check if it should be a submenu.
    99         if ( $ptype_obj->show_in_menu !== true )
     99        if ( $ptype_obj->show_in_menu != true )
    100100                continue;
    101101        $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.
    102102        $ptype_for_id = sanitize_html_class( $ptype );