Skip to content

Commit

Permalink
Syncing twentytwentyone
Browse files Browse the repository at this point in the history
  • Loading branch information
mboynes committed Jan 14, 2024
1 parent 440d1a5 commit 9438728
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion themes/twentytwentyone/inc/template-functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 9438728

Please sign in to comment.