From 6b51f14c6f964918a9f92e780aa29871848c7dc8 Mon Sep 17 00:00:00 2001 From: Dominik Schilling Date: Mon, 24 Nov 2014 22:31:23 +0000 Subject: [PATCH] Customizer: Only show the default button in the upload control if there is a default attachment. props celloexpressions. see #21483. Built from https://develop.svn.wordpress.org/trunk@30553 git-svn-id: http://core.svn.wordpress.org/trunk@30542 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/class-wp-customize-control.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/class-wp-customize-control.php b/wp-includes/class-wp-customize-control.php index 2c49cc5704..4ffad97b02 100644 --- a/wp-includes/class-wp-customize-control.php +++ b/wp-includes/class-wp-customize-control.php @@ -795,7 +795,7 @@ class WP_Customize_Upload_Control extends WP_Customize_Control { <# } else { #>

button_labels['placeholder']; ?>

button_labels['select']; ?> - <# if ( ! data.defaultAttachment ) { #> + <# if ( data.defaultAttachment ) { #> button_labels['default']; ?> <# } #> <# } #> diff --git a/wp-includes/version.php b/wp-includes/version.php index 1ac4a3fcf0..70f6187b5e 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.1-beta2-30552'; +$wp_version = '4.1-beta2-30553'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.