WordPress.org

Make WordPress Core

Ticket #48249: 48249.diff

File 48249.diff, 537 bytes (added by david.binda, 8 months ago)
  • src/wp-admin/includes/plugin.php

     
    13731373        }
    13741374
    13751375        $new_sub_menu = array( $menu_title, $capability, $menu_slug, $page_title );
    1376         if ( null === $position ) {
     1376        if ( ! is_int( $position ) ) {
    13771377                $submenu[ $parent_slug ][] = $new_sub_menu;
    13781378        } else {
    13791379                // If position is equal or higher than the number of items in the array, append the submenu.