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.
Built from https://develop.svn.wordpress.org/branches/6.4@57293


git-svn-id: http://core.svn.wordpress.org/branches/6.4@56799 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
desrosj 2024-01-16 16:12:06 +00:00
parent 191c3cae78
commit 48f19a08aa
2 changed files with 2 additions and 2 deletions

View File

@ -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;
}

View File

@ -16,7 +16,7 @@
*
* @global string $wp_version
*/
$wp_version = '6.4.3-alpha-57292';
$wp_version = '6.4.3-alpha-57293';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.