Commit 3a0f401
committed
Code Modernization: Use
`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.
git-svn-id: https://develop.svn.wordpress.org/trunk@60901 602fd350-edb4-49c9-b593-d223f7449a82str_contains() in get_shortcode_tags_in_content().1 parent 8316c7d commit 3a0f401
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
182 | 182 | | |
183 | 183 | | |
184 | 184 | | |
185 | | - | |
| 185 | + | |
186 | 186 | | |
187 | 187 | | |
188 | 188 | | |
| |||
0 commit comments