mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-22 17:18:32 +01:00
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:
parent
7ba61388a4
commit
1429581c94
@ -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