Wordpress 4.5.3
[autoinstalls/wordpress.git] / wp-includes / customize / class-wp-customize-site-icon-control.php
index fb2fa0d9e01360aecf72f7dcf4dcb76bdec30813..69dea75ed02b41326419c314cfde960da3f79dfd 100644 (file)
@@ -60,6 +60,7 @@ class WP_Customize_Site_Icon_Control extends WP_Customize_Cropped_Image_Control
                </label>
 
                <# if ( data.attachment && data.attachment.id ) { #>
+               <# if ( data.attachment.sizes ) { #>
                <div class="current">
                        <div class="container">
                                <div class="site-icon-preview">
@@ -75,6 +76,7 @@ class WP_Customize_Site_Icon_Control extends WP_Customize_Cropped_Image_Control
                                </div>
                        </div>
                </div>
+               <# } #>
                <div class="actions">
                        <# if ( data.canUpload ) { #>
                                <button type="button" class="button remove-button"><?php echo $this->button_labels['remove']; ?></button>