Make WordPress Core

Changeset 32885


Ignore:
Timestamp:
06/20/2015 06:15:00 PM (8 years ago)
Author:
ocean90
Message:

Customizer: Decode HTML entities in the label property of WP_Customize_Media_Control.

fixes #31631.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-customize-control.php

    r32873 r32885  
    719719    public function to_json() {
    720720        parent::to_json();
     721        $this->json['label'] = html_entity_decode( $this->label, ENT_QUOTES, get_bloginfo( 'charset' ) );
    721722        $this->json['mime_type'] = $this->mime_type;
    722723        $this->json['button_labels'] = $this->button_labels;
Note: See TracChangeset for help on using the changeset viewer.