mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 12:20:22 +00:00
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:
@@ -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>
|
||||
<# } #>
|
||||
<# } #>
|
||||
|
||||
Reference in New Issue
Block a user