Customize: Change attachment condition in the site icon control to prevent errors.

Props neverything.
Fixes #36749 for trunk.

git-svn-id: https://develop.svn.wordpress.org/trunk@37456 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Pascal Birchler 2016-05-17 20:38:20 +00:00
parent e4ed65d87b
commit 8345fc60c7
1 changed files with 1 additions and 1 deletions

View File

@ -59,7 +59,7 @@ class WP_Customize_Site_Icon_Control extends WP_Customize_Cropped_Image_Control
<# } #>
</label>
<# if ( data.attachment && data.attachment.id ) { #>
<# if ( data.attachment && data.attachment.id && data.attachment.sizes ) { #>
<div class="attachment-media-view">
<div class="site-icon-preview">
<div class="favicon-preview">