From 9438728cfc2b5408657d463b9c5afa90ee115578 Mon Sep 17 00:00:00 2001 From: mboynes Date: Sun, 14 Jan 2024 06:03:42 +0000 Subject: [PATCH] Syncing twentytwentyone --- themes/twentytwentyone/inc/template-functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/themes/twentytwentyone/inc/template-functions.php b/themes/twentytwentyone/inc/template-functions.php index 4924773..8c8fcf3 100644 --- a/themes/twentytwentyone/inc/template-functions.php +++ b/themes/twentytwentyone/inc/template-functions.php @@ -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; }