Changeset 30991
- Timestamp:
- 12/23/2014 05:04:47 PM (10 years ago)
- Location:
- trunk/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/js/customize-controls.js
r30885 r30991 129 129 var equal = ( 130 130 listA.length === listB.length && // if lists are different lengths, then naturally they are not equal 131 -1 === _. map( // are there any false values in the list returned by map?131 -1 === _.indexOf( _.map( // are there any false values in the list returned by map? 132 132 _.zip( listA, listB ), // pair up each element between the two lists 133 133 function ( pair ) { 134 134 return $( pair[0] ).is( pair[1] ); // compare to see if each pair are equal 135 135 } 136 ) .indexOf(false ) // check for presence of false in map's return value136 ), false ) // check for presence of false in map's return value 137 137 ); 138 138 return equal; -
trunk/src/wp-includes/class-wp-customize-control.php
r30885 r30991 739 739 public function content_template() { 740 740 ?> 741 <label for="{{ data.settings .default}}-button">741 <label for="{{ data.settings['default'] }}-button"> 742 742 <# if ( data.label ) { #> 743 743 <span class="customize-control-title">{{ data.label }}</span> … … 776 776 <div class="actions"> 777 777 <button type="button" class="button remove-button"><?php echo $this->button_labels['remove']; ?></button> 778 <button type="button" class="button upload-button" id="{{ data.settings .default}}-button"><?php echo $this->button_labels['change']; ?></button>778 <button type="button" class="button upload-button" id="{{ data.settings['default'] }}-button"><?php echo $this->button_labels['change']; ?></button> 779 779 <div style="clear:both"></div> 780 780 </div> … … 795 795 <button type="button" class="button default-button"><?php echo $this->button_labels['default']; ?></button> 796 796 <# } #> 797 <button type="button" class="button upload-button" id="{{ data.settings .default}}-button"><?php echo $this->button_labels['select']; ?></button>797 <button type="button" class="button upload-button" id="{{ data.settings['default'] }}-button"><?php echo $this->button_labels['select']; ?></button> 798 798 <div style="clear:both"></div> 799 799 </div>
Note: See TracChangeset
for help on using the changeset viewer.