[wp-trac] [WordPress Trac] #58012: Replace usage of strpos with str_starts_with
WordPress Trac
noreply at wordpress.org
Wed May 3 03:14:02 UTC 2023
#58012: Replace usage of strpos with str_starts_with
-------------------------------------------------+-------------------------
Reporter: spacedmonkey | Owner:
| SergeyBiryukov
Type: enhancement | Status: reopened
Priority: normal | Milestone: 6.3
Component: General | Version:
Severity: normal | Resolution:
Keywords: good-first-bug has-patch 2nd- | Focuses:
opinion | performance
-------------------------------------------------+-------------------------
Comment (by dd32):
Replying to [comment:24 azaozz]:
> Same considerations as #58206. This seems premature.
I'm on the other side of the fence here, while this undoubtably makes
WordPress slower for the majority of PHP installs (Making this change odd
under the 'performance' tag), using more modern functions is beneficial
overall for coding practices.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/58012#comment:28>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list