From 798ea970d363a7337d03594ccfc6d0ec9f863452 Mon Sep 17 00:00:00 2001 From: "Dominik Schilling (ocean90)" Date: Sat, 20 Jun 2015 18:15:00 +0000 Subject: [PATCH] Customizer: Decode HTML entities in the label property of `WP_Customize_Media_Control`. fixes #31631. git-svn-id: https://develop.svn.wordpress.org/trunk@32885 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/class-wp-customize-control.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/wp-includes/class-wp-customize-control.php b/src/wp-includes/class-wp-customize-control.php index c7bea17f6a..afc2954ccc 100644 --- a/src/wp-includes/class-wp-customize-control.php +++ b/src/wp-includes/class-wp-customize-control.php @@ -718,6 +718,7 @@ class WP_Customize_Media_Control extends WP_Customize_Control { */ public function to_json() { parent::to_json(); + $this->json['label'] = html_entity_decode( $this->label, ENT_QUOTES, get_bloginfo( 'charset' ) ); $this->json['mime_type'] = $this->mime_type; $this->json['button_labels'] = $this->button_labels;