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 $type = 'upload';
|
||||||
public $removed = '';
|
public $removed = '';
|
||||||
public $context;
|
public $context;
|
||||||
public $extensions;
|
public $extensions = array();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Enqueue control related scripts/styles.
|
* Enqueue control related scripts/styles.
|
||||||
|
@ -428,7 +428,7 @@ class WP_Customize_Upload_Control extends WP_Customize_Control {
|
||||||
$this->json['context'] = $this->context;
|
$this->json['context'] = $this->context;
|
||||||
|
|
||||||
if ( $this->extensions )
|
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 $type = 'image';
|
||||||
public $get_url;
|
public $get_url;
|
||||||
public $statuses;
|
public $statuses;
|
||||||
public $extensions = 'jpg,jpeg,gif,png';
|
public $extensions = array( 'jpg', 'jpeg', 'gif', 'png' );
|
||||||
|
|
||||||
protected $tabs = array();
|
protected $tabs = array();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue