From 2a76ccac4e07dcc7bac802a3f2e0862221dbe2c1 Mon Sep 17 00:00:00 2001 From: Dominik Schilling Date: Thu, 16 Jun 2016 09:45:27 +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. Built from https://develop.svn.wordpress.org/trunk@37724 git-svn-id: http://core.svn.wordpress.org/trunk@37690 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- .../class-wp-customize-site-icon-control.php | 20 ++++++++++--------- wp-includes/version.php | 2 +- 2 files changed, 12 insertions(+), 10 deletions(-) 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 9bbb7d1d61..370ce7180d 100644 --- a/wp-includes/customize/class-wp-customize-site-icon-control.php +++ b/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 ) { #> diff --git a/wp-includes/version.php b/wp-includes/version.php index f765886e03..4dcc0fb126 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.6-alpha-37723'; +$wp_version = '4.6-alpha-37724'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.