Customizer uploader control: Pass arrays of extensions around instead. see #22149.

git-svn-id: http://core.svn.wordpress.org/trunk@22519 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Andrew Nacin 2012-11-10 04:59:46 +00:00
parent 7ba61388a4
commit 1429581c94

View File

@ -402,7 +402,7 @@ class WP_Customize_Upload_Control extends WP_Customize_Control {
public $type = 'upload';
public $removed = '';
public $context;
public $extensions;
public $extensions = array();
/**
* Enqueue control related scripts/styles.
@ -428,7 +428,7 @@ class WP_Customize_Upload_Control extends WP_Customize_Control {
$this->json['context'] = $this->context;
if ( $this->extensions )
$this->json['extensions'] = $this->extensions;
$this->json['extensions'] = implode( ',', $this->extensions );
}
/**
@ -460,7 +460,7 @@ class WP_Customize_Image_Control extends WP_Customize_Upload_Control {
public $type = 'image';
public $get_url;
public $statuses;
public $extensions = 'jpg,jpeg,gif,png';
public $extensions = array( 'jpg', 'jpeg', 'gif', 'png' );
protected $tabs = array();