[wp-trac] [WordPress Trac] #63168: Coding Standards fixes for WP 6.9

WordPress Trac noreply at wordpress.org
Sun Oct 5 19:04:38 UTC 2025


#63168: Coding Standards fixes for WP 6.9
--------------------------------------+-------------------------------
 Reporter:  desrosj                   |       Owner:  (none)
     Type:  task (blessed)            |      Status:  reopened
 Priority:  normal                    |   Milestone:  6.9
Component:  General                   |     Version:
 Severity:  normal                    |  Resolution:
 Keywords:  has-patch has-unit-tests  |     Focuses:  coding-standards
--------------------------------------+-------------------------------

Comment (by SergeyBiryukov):

 In [changeset:"60901" 60901]:
 {{{
 #!CommitTicketReference repository="" revision="60901"
 Code Modernization: Use `str_contains()` in
 `get_shortcode_tags_in_content()`.

 `str_contains()` was introduced in PHP 8.0 to perform a case-sensitive
 check indicating if the string to search in (haystack) contains the given
 substring (needle).

 WordPress core includes a polyfill for `str_contains()` on PHP < 8.0 as of
 WordPress 5.9.

 Follow-up to [52039], [55988], [56245], [56838], [60900].

 See #63168.
 }}}

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


More information about the wp-trac mailing list