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/wp-content/themes/twentytwentyone/inc/template-functions.php
+++ b/wp-content/themes/twentytwentyone/inc/template-functions.php
@@ -416,6 +416,9 @@
  * @return array
  */
 function twenty_twenty_one_get_attachment_image_attributes( $attr, $attachment, $size ) {
+	if ( is_admin() ) {
+		return $attr;
+	}
 
 	if ( isset( $attr['class'] ) && false !== strpos( $attr['class'], 'custom-logo' ) ) {
 		return $attr;
