Make WordPress Core

Changeset 30553


Ignore:
Timestamp:
11/24/2014 10:30:25 PM (10 years ago)
Author:
ocean90
Message:

Customizer: Only show the default button in the upload control if there is a default attachment.

props celloexpressions.
see #21483.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-customize-control.php

    r30329 r30553  
    796796            <p class="placeholder-text"><?php echo $this->button_labels['placeholder']; ?></p>
    797797            <a class="button upload-button" id="{{ data.settings.default }}-button" href="#"><?php echo $this->button_labels['select']; ?></a>
    798             <# if ( ! data.defaultAttachment ) { #>
     798            <# if ( data.defaultAttachment ) { #>
    799799                <a class="default-button remove-button" href="#"><?php echo $this->button_labels['default']; ?></a>
    800800            <# } #>
Note: See TracChangeset for help on using the changeset viewer.