[wp-trac] [WordPress Trac] #45018: Non-string needle parameters throw warning in PHP 7.3
WordPress Trac
noreply at wordpress.org
Thu Nov 15 23:19:44 UTC 2018
#45018: Non-string needle parameters throw warning in PHP 7.3
-------------------------------------------+---------------------
Reporter: desrosj | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 5.0
Component: General | Version:
Severity: normal | Resolution:
Keywords: php73 has-patch needs-testing | Focuses:
-------------------------------------------+---------------------
Comment (by pento):
In [changeset:"43899" 43899]:
{{{
#!CommitTicketReference repository="" revision="43899"
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 behaviour is deprecated in PHP
7.3.
As this is the last known PHP 7.3 incompatibility, this commit also
removes PHP 7.3 from Travis' `allowed_failures` list.
Props desrosj, jorbin.
See #45018.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/45018#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list