Changeset 52569 for trunk/src/wp-admin/includes/plugin.php
- Timestamp:
- 01/12/2022 11:23:41 PM (4 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-admin/includes/plugin.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/plugin.php
r52352 r52569 1330 1330 $menu[ "$position" ] = $new_menu; 1331 1331 } else { 1332 if ( ! is_int( $position ) ) { 1333 _doing_it_wrong( 1334 __FUNCTION__, 1335 sprintf( 1336 /* translators: %s: add_submenu_page() */ 1337 __( 'The seventh parameter passed to %s should be an integer representing menu position.' ), 1338 '<code>add_menu_page()</code>' 1339 ), 1340 '6.0.0' 1341 ); 1342 // If the position is not a string (i.e. float), convert it to string. 1343 if ( ! is_string( $position ) ) { 1344 $position = (string) $position; 1345 } 1346 } 1332 1347 $menu[ $position ] = $new_menu; 1333 1348 }
Note: See TracChangeset
for help on using the changeset viewer.