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
This commit is contained in:
Dominik Schilling (ocean90) 2014-11-24 22:30:25 +00:00
parent ea4528dc43
commit 1b920af543

View File

@ -795,7 +795,7 @@ class WP_Customize_Upload_Control extends WP_Customize_Control {
<# } else { #>
<p class="placeholder-text"><?php echo $this->button_labels['placeholder']; ?></p>
<a class="button upload-button" id="{{ data.settings.default }}-button" href="#"><?php echo $this->button_labels['select']; ?></a>
<# if ( ! data.defaultAttachment ) { #>
<# if ( data.defaultAttachment ) { #>
<a class="default-button remove-button" href="#"><?php echo $this->button_labels['default']; ?></a>
<# } #>
<# } #>