mirror of
git://develop.git.wordpress.org/
synced 2025-03-23 13:29:56 +01:00
Twenty Twenty-One: Revert usage of str_contains() in theme files.
The theme supports WordPress 5.3 or later, while the polyfill for str_contains() only exists in WordPress 5.9 or later. Follow-up to [55988], [57275], [57276]. Merges [57277] to the 6.4 branch. Props poena, SergeyBiryukov. Fixes #60241. git-svn-id: https://develop.svn.wordpress.org/branches/6.4@57293 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
716e160435
commit
5a52b8ec6f
@ -445,7 +445,7 @@ function twenty_twenty_one_get_attachment_image_attributes( $attr, $attachment,
|
||||
return $attr;
|
||||
}
|
||||
|
||||
if ( isset( $attr['class'] ) && str_contains( $attr['class'], 'custom-logo' ) ) {
|
||||
if ( isset( $attr['class'] ) && false !== strpos( $attr['class'], 'custom-logo' ) ) {
|
||||
return $attr;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user