mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-04 01:00:04 +00:00
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:
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user