--- a/wp/wp-includes/customize/class-wp-customize-site-icon-control.php Mon Oct 14 18:06:33 2019 +0200
+++ b/wp/wp-includes/customize/class-wp-customize-site-icon-control.php Mon Oct 14 18:28:13 2019 +0200
@@ -47,14 +47,12 @@
*/
public function content_template() {
?>
- <label for="{{ data.settings['default'] }}-button">
- <# if ( data.label ) { #>
- <span class="customize-control-title">{{ data.label }}</span>
- <# } #>
- <# if ( data.description ) { #>
- <span class="description customize-control-description">{{{ data.description }}}</span>
- <# } #>
- </label>
+ <# if ( data.label ) { #>
+ <span class="customize-control-title">{{ data.label }}</span>
+ <# } #>
+ <# if ( data.description ) { #>
+ <span class="description customize-control-description">{{{ data.description }}}</span>
+ <# } #>
<# if ( data.attachment && data.attachment.id ) { #>
<div class="attachment-media-view">
@@ -74,22 +72,19 @@
<div class="actions">
<# if ( data.canUpload ) { #>
<button type="button" class="button remove-button"><?php echo $this->button_labels['remove']; ?></button>
- <button type="button" class="button upload-button" id="{{ data.settings['default'] }}-button"><?php echo $this->button_labels['change']; ?></button>
+ <button type="button" class="button upload-button"><?php echo $this->button_labels['change']; ?></button>
<# } #>
</div>
</div>
<# } else { #>
<div class="attachment-media-view">
- <div class="placeholder">
- <?php echo $this->button_labels['placeholder']; ?>
- </div>
+ <# if ( data.canUpload ) { #>
+ <button type="button" class="upload-button button-add-media"><?php echo $this->button_labels['site_icon']; ?></button>
+ <# } #>
<div class="actions">
<# if ( data.defaultAttachment ) { #>
<button type="button" class="button default-button"><?php echo $this->button_labels['default']; ?></button>
<# } #>
- <# if ( data.canUpload ) { #>
- <button type="button" class="button upload-button" id="{{ data.settings['default'] }}-button"><?php echo $this->button_labels['select']; ?></button>
- <# } #>
</div>
</div>
<# } #>