Changeset 46570
- Timestamp:
- 10/22/2019 05:50:45 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/plugin.php
r46410 r46570 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 if ( null !== $position ) { 1378 _doing_it_wrong( 1379 __FUNCTION__, 1380 sprintf( 1381 /* translators: %s: add_submenu_page() */ 1382 __( 'The seventh parameter passed to %s should be an integer representing menu position.' ), 1383 '<code>add_submenu_page()</code>' 1384 ), 1385 '5.3.0' 1386 ); 1387 } 1388 1377 1389 $submenu[ $parent_slug ][] = $new_sub_menu; 1378 1390 } else {
Note: See TracChangeset
for help on using the changeset viewer.