Changeset 53264
- Timestamp:
- 04/26/2022 02:57:22 AM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/plugin.php
r53215 r53264 1326 1326 $new_menu = array( $menu_title, $capability, $menu_slug, $page_title, 'menu-top ' . $icon_class . $hookname, $hookname, $icon_url ); 1327 1327 1328 if ( null !== $position && ! is_numeric( $position ) ) { 1329 _doing_it_wrong( 1330 __FUNCTION__, 1331 sprintf( 1332 /* translators: %s: add_menu_page() */ 1333 __( 'The seventh parameter passed to %s should be numeric representing menu position.' ), 1334 '<code>add_menu_page()</code>' 1335 ), 1336 '6.0.0' 1337 ); 1338 $position = null; 1339 } 1340 1328 1341 if ( null === $position || ! is_numeric( $position ) ) { 1329 1342 $menu[] = $new_menu; … … 1422 1435 sprintf( 1423 1436 /* translators: %s: add_submenu_page() */ 1424 __( 'The seventh parameter passed to %s should be an integerrepresenting menu position.' ),1437 __( 'The seventh parameter passed to %s should be numeric representing menu position.' ), 1425 1438 '<code>add_submenu_page()</code>' 1426 1439 ),
Note: See TracChangeset
for help on using the changeset viewer.