Changeset 22492
- Timestamp:
- 11/09/2012 05:47:02 AM (12 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/js/customize-controls.js
r22491 r22492 146 146 dropzone: this.container.find('.upload-dropzone'), 147 147 success: this.success, 148 plupload: {}, 148 149 params: {} 149 150 }, this.uploader || {} ); 151 152 if ( control.params.extensions ) { 153 control.uploader.plupload.filters = [{ 154 title: api.l10n.allowedFiles, 155 extensions: control.params.extensions 156 }]; 157 } 150 158 151 159 if ( control.params.context ) -
trunk/wp-includes/class-wp-customize-control.php
r22400 r22492 403 403 public $removed = ''; 404 404 public $context; 405 public $extensions; 405 406 406 407 /** … … 426 427 if ( $this->context ) 427 428 $this->json['context'] = $this->context; 429 430 if ( $this->extensions ) 431 $this->json['extensions'] = $this->extensions; 428 432 } 429 433 … … 457 461 public $get_url; 458 462 public $statuses; 463 public $extensions = 'jpg,jpeg,gif,png'; 459 464 460 465 protected $tabs = array(); -
trunk/wp-includes/script-loader.php
r22480 r22492 314 314 'close' => __( 'Close' ), 315 315 'cheatin' => __( 'Cheatin’ uh?' ), 316 317 // Used for overriding the file types allowed in plupload. 318 'allowedFiles' => __( 'Allowed Files' ), 316 319 ) ); 317 320
Note: See TracChangeset
for help on using the changeset viewer.