diff --git a/src/wp-includes/nav-menu.php b/src/wp-includes/nav-menu.php
index 9b6eeba..cf761b9 100644
a
|
b
|
function register_nav_menus( $locations = array() ) { |
92 | 92 | |
93 | 93 | add_theme_support( 'menus' ); |
94 | 94 | |
| 95 | foreach ( $locations as $key => $value ) { |
| 96 | if ( is_int( $key ) ) { |
| 97 | /* translators: %s: menu location value */ |
| 98 | $message = sprintf( __( 'Strings should always be used for menu location slugs.' ), $value ); |
| 99 | _doing_it_wrong( __FUNCTION__, $message, '5.2' ); |
| 100 | break; |
| 101 | } |
| 102 | } |
| 103 | |
95 | 104 | $_wp_registered_nav_menus = array_merge( (array) $_wp_registered_nav_menus, $locations ); |
96 | 105 | } |
97 | 106 | |