[wp-trac] [WordPress Trac] #58206: Replace usage of strpos with str_contains

WordPress Trac noreply at wordpress.org
Wed Jun 28 10:08:06 UTC 2023


#58206: Replace usage of strpos with str_contains
-------------------------------------+-------------------------------------
 Reporter:  spacedmonkey             |       Owner:  SergeyBiryukov
     Type:  enhancement              |      Status:  reopened
 Priority:  normal                   |   Milestone:  6.3
Component:  General                  |     Version:
 Severity:  blocker                  |  Resolution:
 Keywords:  good-first-bug 2nd-      |     Focuses:  performance, coding-
  opinion has-patch needs-testing    |  standards
-------------------------------------+-------------------------------------

Comment (by azaozz):

 In [changeset:"56088" 56088]:
 {{{
 #!CommitTicketReference repository="" revision="56088"
 Revert use of `str_starts_with()` and `str_contains()` in `update-
 core.php`.

 Fixes updating WordPress from 5.7 and earlier versions. When updating this
 file runs first in the old version where the polifills may not be
 available.

 Props: ironprogrammer, SergeyBiryukov, dd32, azaozz.
 See: #58206.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/58206#comment:55>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list