Ticket #48249: 48249.diff
| File 48249.diff, 537 bytes (added by , 6 years ago) |
|---|
-
src/wp-admin/includes/plugin.php
1373 1373 } 1374 1374 1375 1375 $new_sub_menu = array( $menu_title, $capability, $menu_slug, $page_title ); 1376 if ( null === $position) {1376 if ( ! is_int( $position ) ) { 1377 1377 $submenu[ $parent_slug ][] = $new_sub_menu; 1378 1378 } else { 1379 1379 // If position is equal or higher than the number of items in the array, append the submenu.