WordPress.org

Make WordPress Core

Ticket #52212: 52212.diff

File 52212.diff, 585 bytes (added by denisco, 13 months ago)
  • wp-content/themes/twentytwentyone/inc/template-functions.php

    diff --git a/wp-content/themes/twentytwentyone/inc/template-functions.php b/wp-content/themes/twentytwentyone/inc/template-functions.php
    index ec4efea..9b661cd 100644
    a b  
    416416 * @return array
    417417 */
    418418function twenty_twenty_one_get_attachment_image_attributes( $attr, $attachment, $size ) {
     419        if ( is_admin() ) {
     420                return $attr;
     421        }
    419422
    420423        if ( isset( $attr['class'] ) && false !== strpos( $attr['class'], 'custom-logo' ) ) {
    421424                return $attr;