[wp-trac] [WordPress Trac] #60241: Revert usage of str_contains() in older bundled themes
WordPress Trac
noreply at wordpress.org
Fri Jan 12 11:43:29 UTC 2024
#60241: Revert usage of str_contains() in older bundled themes
----------------------------+--------------------
Reporter: SergeyBiryukov | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 6.5
Component: Bundled Theme | Version:
Severity: normal | Keywords:
Focuses: |
----------------------------+--------------------
Background: #58206.
In [55988], instances of `false !== strpos( ... )` were replaced with
`str_contains()` in core files, including the Twenty Twenty and Twenty
Seventeen bundled themes.
As [comment:67:ticket:58206 pointed out] by @poena, the polyfill for
`str_contains()` is only available in WordPress 5.9 or later, while Twenty
Twenty supports WordPress 4.7 and PHP 5.2.4, where the use of
`str_contains()` causes fatal errors. This applies to Twenty Seventeen
too.
Full list of changes that should be reverted: [55988/trunk/src/wp-
content/themes].
--
Ticket URL: <https://core.trac.wordpress.org/ticket/60241>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list