[wp-trac] [WordPress Trac] #58206: Replace usage of strpos with str_contains
WordPress Trac
noreply at wordpress.org
Thu Apr 27 11:29:03 UTC 2023
#58206: Replace usage of strpos with str_contains
----------------------------+--------------------------------------------
Reporter: spacedmonkey | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version:
Severity: normal | Resolution:
Keywords: good-first-bug | Focuses: performance, coding-standards
----------------------------+--------------------------------------------
Comment (by dingo_d):
`str_starts_with` is PHP 8+ syntax, so you cannot just replace `strpos`
checks with it until the minimum PHP version is raised to PHP 8 if I'm not
mistaken...
--
Ticket URL: <https://core.trac.wordpress.org/ticket/58206#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list