Changeset 46102
- Timestamp:
- 09/13/2019 05:57:57 PM (4 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/nav-menu.php
r45932 r46102 92 92 93 93 add_theme_support( 'menus' ); 94 95 foreach ( $locations as $key => $value ) { 96 if ( is_int( $key ) ) { 97 _doing_it_wrong( __FUNCTION__, __( 'Nav menu locations must be strings.' ), '5.3' ); 98 break; 99 } 100 } 94 101 95 102 $_wp_registered_nav_menus = array_merge( (array) $_wp_registered_nav_menus, $locations ); -
trunk/tests/phpunit/tests/menu/nav-menu.php
r45588 r46102 183 183 * Technically possible to register menu locations numerically. 184 184 * 185 * @expectedIncorrectUsage register_nav_menus 186 * 185 187 * @covers ::wp_map_nav_menu_locations() 186 188 */ … … 205 207 /** 206 208 * Technically possible old nav menu locations were registered numerically. 209 * 210 * @expectedIncorrectUsage register_nav_menus 207 211 * 208 212 * @covers wp_map_nav_menu_locations()
Note: See TracChangeset
for help on using the changeset viewer.