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:
parent
e4ed65d87b
commit
8345fc60c7
|
@ -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">
|
||||
|
|
Loading…
Reference in New Issue