From 1429581c949bf8e2a4cc76e673899c608d4da36b Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Sat, 10 Nov 2012 04:59:46 +0000 Subject: [PATCH] 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 --- wp-includes/class-wp-customize-control.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wp-includes/class-wp-customize-control.php b/wp-includes/class-wp-customize-control.php index 677bba7011..d24a5f2e7c 100644 --- a/wp-includes/class-wp-customize-control.php +++ b/wp-includes/class-wp-customize-control.php @@ -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();