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
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user