Ticket #35542: 35542.diff
| File 35542.diff, 2.4 KB (added by , 10 years ago) |
|---|
-
src/wp-includes/customize/class-wp-customize-media-control.php
55 55 public function __construct( $manager, $id, $args = array() ) { 56 56 parent::__construct( $manager, $id, $args ); 57 57 58 $this->button_labels = array (58 $this->button_labels = array_merge( array( 59 59 'select' => __( 'Select File' ), 60 60 'change' => __( 'Change File' ), 61 61 'default' => __( 'Default' ), … … 63 63 'placeholder' => __( 'No file selected' ), 64 64 'frame_title' => __( 'Select File' ), 65 65 'frame_button' => __( 'Choose File' ), 66 ) ;66 ), $this->button_labels ); 67 67 } 68 68 69 69 /** … … 193 193 </div> 194 194 <div class="actions"> 195 195 <# if ( data.canUpload ) { #> 196 <button type="button" class="button remove-button"> <?php echo $this->button_labels['remove']; ?></button>197 <button type="button" class="button upload-button" id="{{ data.settings['default'] }}-button"> <?php echo $this->button_labels['change']; ?></button>196 <button type="button" class="button remove-button">{{ data.button_labels.remove }}</button> 197 <button type="button" class="button upload-button" id="{{ data.settings['default'] }}-button">{{ data.button_labels.change }}</button> 198 198 <div style="clear:both"></div> 199 199 <# } #> 200 200 </div> … … 204 204 <div class="placeholder"> 205 205 <div class="inner"> 206 206 <span> 207 <?php echo $this->button_labels['placeholder']; ?>207 {{ data.button_labels.placeholder }} 208 208 </span> 209 209 </div> 210 210 </div> … … 212 212 </div> 213 213 <div class="actions"> 214 214 <# if ( data.defaultAttachment ) { #> 215 <button type="button" class="button default-button"> <?php echo $this->button_labels['default']; ?></button>215 <button type="button" class="button default-button">{{ data.button_labels.default }}</button> 216 216 <# } #> 217 217 <# if ( data.canUpload ) { #> 218 <button type="button" class="button upload-button" id="{{ data.settings['default'] }}-button"> <?php echo $this->button_labels['select']; ?></button>218 <button type="button" class="button upload-button" id="{{ data.settings['default'] }}-button">{{ data.button_labels.select }}</button> 219 219 <# } #> 220 220 <div style="clear:both"></div> 221 221 </div>
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)