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

WordPress Trac noreply at wordpress.org
Thu Jun 22 15:53:48 UTC 2023


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

Comment (by ryelle):

 @SergeyBiryukov I think this is causing trouble with `load-styles.php` —
 when I apply [55988] to WordPress.org, `https://wordpress.org/wp-admin
 /load-styles.php?load=l10n,wp-auth-check` returns an empty result. Could
 be related to [55710]/#58244?

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


More information about the wp-trac mailing list