wordpress-develop/tests/phpunit/tests/menu
Jonathan Desrosiers 2e78177467 Nav Menus: Fix a PHP 7.3 error when switching themes.
When switching themes, `wp_map_nav_menu_locations()` is used to ensure nav menus are placed in the relevant menu location. Occasionally, menus are registered to locations with numeric slugs, rather than strings. `wp_map_nav_menu_locations()` assumed it would be the latter, and ran `stripos()` on those numeric slugs. This behavior is deprecated in PHP 7.3.

As this is the last PHP 7.3 error in unit tests, this commit also removes PHP 7.3 from Travis' `allowed_failures` list.

Props pento, desrosj, jorbin.

Merges [43899] to trunk.

See #45018.

git-svn-id: https://develop.svn.wordpress.org/trunk@44167 602fd350-edb4-49c9-b593-d223f7449a82
2018-12-14 05:15:54 +00:00
..
nav-menu.php Nav Menus: Fix a PHP 7.3 error when switching themes. 2018-12-14 05:15:54 +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
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