WordPress/wp-content/themes
Sergey Biryukov 1ce5dc7444 Code Modernization: Replace usage of `strpos()` with `str_contains()`.
`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.

This commit replaces `false !== strpos( ... )` with `str_contains()` in core files, making the code more readable and consistent, as well as better aligned with modern development practices.

Follow-up to [52039], [52040], [52326], [55703], [55710], [55987].

Props Soean, spacedmonkey, costdev, dingo_d, azaozz, mikeschroder, flixos90, peterwilsoncc, SergeyBiryukov.
Fixes #58206.
Built from https://develop.svn.wordpress.org/trunk@55988


git-svn-id: http://core.svn.wordpress.org/trunk@55500 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-06-22 14:36:26 +00:00
..
twentyeleven General: Replace some instances of "blog" with "site" in documentation, translator comments, and user-facing text strings. 2023-06-19 18:27:27 +00:00
twentyfifteen Twenty Fifteen: Remove IE specific resources. 2023-06-22 06:11:26 +00:00
twentyfourteen Bundled Themes: Fix Twenty Fourteen button block line-height. 2023-06-17 21:37:34 +00:00
twentynineteen Twenty Nineteen: Fix a JS coding standard issue found after [55970]. 2023-06-21 21:54:22 +00:00
twentyseventeen Code Modernization: Replace usage of `strpos()` with `str_contains()`. 2023-06-22 14:36:26 +00:00
twentysixteen Twenty Sixteen: Fix List block padding in the editor. 2023-06-21 15:07:22 +00:00
twentyten Twenty Ten: Improve Pullquote block line height for better readability. 2023-06-22 05:35:21 +00:00
twentythirteen Twenty Thirteen: Remove IE specific resources. 2023-06-22 06:22:23 +00:00
twentytwelve Bundled Themes: Remove `load_theme_textdomain()` calls from default themes. 2023-06-16 13:04:21 +00:00
twentytwenty Code Modernization: Replace usage of `strpos()` with `str_contains()`. 2023-06-22 14:36:26 +00:00
twentytwentyone Code Modernization: Replace usage of `strpos()` with `str_contains()`. 2023-06-22 14:36:26 +00:00
twentytwentythree Twenty Twenty-Three: Remove redundant `px` unit in a few inline styles. 2023-06-08 14:00:20 +00:00
twentytwentytwo Twenty Twenty-Two: Add missing subject tags and feature tags. 2023-06-21 13:24:18 +00:00
index.php Remove closing PHP tags from the rest of index.php files in wp-content, for consistency with wp-content/index.php. 2014-06-05 15:59:14 +00:00