wordpress-develop/tests/phpunit/tests/menu
Jonathan Desrosiers 50a0d6c7a9 Menus: Nav menu locations should not be integers.
When nav menu location slugs are integers, some hard to debug results can occur. `register_nav_menus()` utilizes `array_merge()` which renumbers numeric indexes, starting from 0. Because of this, numeric menu locations will almost always be changed.

This change introduces a `_doing_it_wrong()` notice to inform developers that nav menu locations should always be strings.

Props audrasjb, desrosj, welcher.
Fixes #45361.

git-svn-id: https://develop.svn.wordpress.org/trunk@46102 602fd350-edb4-49c9-b593-d223f7449a82
2019-09-13 17:57:57 +00:00
..
nav-menu.php Menus: Nav menu locations should not be integers. 2019-09-13 17:57:57 +00:00
walker-nav-menu-edit.php Nav Menus: In Walker_Nav_Menu_Edit::start_el() initialize $original_title with false. 2016-07-04 20:15:48 +00:00
walker-nav-menu.php Menus: Add rel="noopener" to target="_blank" links by default in menus. 2019-04-08 23:05:22 +00:00
wpAjaxMenuQuickSearch.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:50:26 +00:00
wpExpandNavMenuPostData.php Code is Poetry. 2017-11-30 23:09:33 +00:00