From c3a292dc76874538ae7e80fd21d4db1aea1d2501 Mon Sep 17 00:00:00 2001 From: Dominik Schilling Date: Thu, 16 Jun 2016 09:53:28 +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. Merge of [37724] to the 4.5 branch. See #36749. Built from https://develop.svn.wordpress.org/branches/4.5@37725 git-svn-id: http://core.svn.wordpress.org/branches/4.5@37691 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/customize/class-wp-customize-site-icon-control.php | 2 ++ wp-includes/version.php | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/wp-includes/customize/class-wp-customize-site-icon-control.php b/wp-includes/customize/class-wp-customize-site-icon-control.php index fb2fa0d9e0..69dea75ed0 100644 --- a/wp-includes/customize/class-wp-customize-site-icon-control.php +++ b/wp-includes/customize/class-wp-customize-site-icon-control.php @@ -60,6 +60,7 @@ class WP_Customize_Site_Icon_Control extends WP_Customize_Cropped_Image_Control <# if ( data.attachment && data.attachment.id ) { #> + <# if ( data.attachment.sizes ) { #>
@@ -75,6 +76,7 @@ class WP_Customize_Site_Icon_Control extends WP_Customize_Cropped_Image_Control
+ <# } #>
<# if ( data.canUpload ) { #> diff --git a/wp-includes/version.php b/wp-includes/version.php index 77e3623c19..6b5c2e8281 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.5.3-alpha-37711'; +$wp_version = '4.5.3-alpha-37725'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.