Customizer uploader control: Pass arrays of extensions around instead. see #22149.
git-svn-id: https://develop.svn.wordpress.org/trunk@22519 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
e655cbc2d1
commit
020e87658b
@ -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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user