From f50f50cd0b7bc9a40f34a5c8a38fc4f3edeafbc4 Mon Sep 17 00:00:00 2001 From: "Dominik Schilling (ocean90)" Date: Thu, 16 Jun 2016 09:44:21 +0000 Subject: [PATCH] Customize: Separate preview and actions in the site icon control. Reverts [37456] to allow users to remove/change a site icon even if the attachment has corrupt/missing data about sizes. Fixes #36749. git-svn-id: https://develop.svn.wordpress.org/trunk@37724 602fd350-edb4-49c9-b593-d223f7449a82 --- .../class-wp-customize-site-icon-control.php | 20 ++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/src/wp-includes/customize/class-wp-customize-site-icon-control.php b/src/wp-includes/customize/class-wp-customize-site-icon-control.php index 9bbb7d1d61..370ce7180d 100644 --- a/src/wp-includes/customize/class-wp-customize-site-icon-control.php +++ b/src/wp-includes/customize/class-wp-customize-site-icon-control.php @@ -59,19 +59,21 @@ class WP_Customize_Site_Icon_Control extends WP_Customize_Cropped_Image_Control <# } #> - <# if ( data.attachment && data.attachment.id && data.attachment.sizes ) { #> + <# if ( data.attachment && data.attachment.id ) { #>
-
-
- + <# if ( data.attachment.sizes ) { #> +
+
+ -
- <?php esc_attr_e( 'Preview as a browser icon' ); ?> +
+ <?php esc_attr_e( 'Preview as a browser icon' ); ?> +
+
- + <?php esc_attr_e( 'Preview as an app icon' ); ?>
- <?php esc_attr_e( 'Preview as an app icon' ); ?> -
+ <# } #>
<# if ( data.canUpload ) { #>