[wp-trac] [WordPress Trac] #58012: Replace usage of strpos with str_starts_with

WordPress Trac noreply at wordpress.org
Tue May 2 21:19:49 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 flixos90):

 Completely unrelated to the point above whether we should do this or not,
 it seems this commit broke my WP core dev environment 🤔

 My WP Admin shows completely unstyled since [55703], but without that
 commit (i.e. when running [55702]) it shows up correctly. It may have
 unexpectedly broken something?

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


More information about the wp-trac mailing list