From 4fdc99d2d1406287c20724ef667ca4110d869b43 Mon Sep 17 00:00:00 2001 From: Dominik Schilling Date: Sat, 20 Jun 2015 18:15:26 +0000 Subject: [PATCH] Customizer: Decode HTML entities in the label property of `WP_Customize_Media_Control`. fixes #31631. Built from https://develop.svn.wordpress.org/trunk@32885 git-svn-id: http://core.svn.wordpress.org/trunk@32856 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/class-wp-customize-control.php | 1 + wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/wp-includes/class-wp-customize-control.php b/wp-includes/class-wp-customize-control.php index c7bea17f6a..afc2954ccc 100644 --- a/wp-includes/class-wp-customize-control.php +++ b/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; diff --git a/wp-includes/version.php b/wp-includes/version.php index 382c9a637a..7deb519b8a 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.3-alpha-32884'; +$wp_version = '4.3-alpha-32885'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.