From 1b920af543199f9934e6222dbe245533f726a328 Mon Sep 17 00:00:00 2001 From: "Dominik Schilling (ocean90)" Date: Mon, 24 Nov 2014 22:30:25 +0000 Subject: [PATCH] Customizer: Only show the default button in the upload control if there is a default attachment. props celloexpressions. see #21483. git-svn-id: https://develop.svn.wordpress.org/trunk@30553 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/class-wp-customize-control.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-includes/class-wp-customize-control.php b/src/wp-includes/class-wp-customize-control.php index 2c49cc5704..4ffad97b02 100644 --- a/src/wp-includes/class-wp-customize-control.php +++ b/src/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']; ?> <# } #> <# } #>