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
This commit is contained in:
Dominik Schilling (ocean90) 2015-06-20 18:15:00 +00:00
parent 5b56ca5ab1
commit 798ea970d3
1 changed files with 1 additions and 0 deletions

View File

@ -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;