Files
wordpress/wp-includes/shortcodes.php
Sergey Biryukov 047d4cca09 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.
Built from https://develop.svn.wordpress.org/trunk@60901


git-svn-id: http://core.svn.wordpress.org/trunk@60237 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-10-05 19:06:33 +00:00

24 KiB