Commit 8316c7d
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], [60897].
Props TobiasBg.
See #63087.
git-svn-id: https://develop.svn.wordpress.org/trunk@60900 602fd350-edb4-49c9-b593-d223f7449a82str_contains() in get_avatar_data().1 parent b7b1441 commit 8316c7d
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4577 | 4577 | | |
4578 | 4578 | | |
4579 | 4579 | | |
4580 | | - | |
| 4580 | + | |
4581 | 4581 | | |
4582 | 4582 | | |
4583 | 4583 | | |
| |||
0 commit comments