WordPress/wp-admin/network
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
..
about.php
admin.php
credits.php
edit.php
freedoms.php
index.php Help/About: Use a consistent capitalization for "Support forums" links across WP Admin. 2023-02-23 11:13:22 +00:00
menu.php Administration: Add "File" to Theme/Plugin Editor menu names and relocate "Plugin File Editor" to Tools for block themes. 2021-12-21 20:06:02 +00:00
plugin-editor.php Administration: Add "File" to Theme/Plugin Editor menu names and relocate "Plugin File Editor" to Tools for block themes. 2021-12-21 20:06:02 +00:00
plugin-install.php
plugins.php
privacy.php
profile.php
settings.php Coding Standards: Use strict comparison in wp-admin/network/users.php. 2023-06-03 16:18:21 +00:00
setup.php
site-info.php Networks and Sites: Use consistent markup for admin notices. 2023-02-23 22:13:23 +00:00
site-new.php Multisite: Require a site title when a site is created 2023-06-08 09:07:20 +00:00
site-settings.php Code Modernization: Replace usage of strpos() with str_contains(). 2023-06-22 14:36:26 +00:00
site-themes.php Coding Standards: Correct the closing PHP tag placement in some admin files. 2023-04-03 12:00:27 +00:00
site-users.php Coding Standards: Correct the closing PHP tag placement in some admin files. 2023-04-03 12:00:27 +00:00
sites.php Coding Standards: Use strict comparison in wp-admin/network/sites.php. 2023-06-02 12:40:22 +00:00
theme-editor.php Administration: Add "File" to Theme/Plugin Editor menu names and relocate "Plugin File Editor" to Tools for block themes. 2021-12-21 20:06:02 +00:00
theme-install.php
themes.php Code Modernization: Replace usage of strpos() with str_contains(). 2023-06-22 14:36:26 +00:00
update-core.php
update.php
upgrade.php Help/About: Use the new /documentation/ URLs for HelpHub links in WordPress Admin. 2023-02-23 10:38:21 +00:00
user-edit.php
user-new.php Coding Standards: Correct the closing PHP tag placement in some admin files. 2023-04-03 12:00:27 +00:00
users.php Coding Standards: Use strict comparison in wp-admin/network/users.php. 2023-06-03 16:18:21 +00:00