WordPress.org

Make WordPress Core


Ignore:
Timestamp:
06/17/2015 07:47:58 PM (5 years ago)
Author:
ocean90
Message:

Customizer: Decode HTML entities of panel/section titles.

Titles are now passed into Underscore templates but HTML-escaped, see #30737.

fixes #32670.

File:
1 edited

Legend:

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

    r32658 r32822  
    215215     */
    216216    public function json() {
    217         $array = wp_array_slice_assoc( (array) $this, array( 'id', 'title', 'description', 'priority', 'type' ) );
     217        $array = wp_array_slice_assoc( (array) $this, array( 'id', 'description', 'priority', 'type' ) );
     218        $array['title'] = html_entity_decode( $this->title, ENT_QUOTES, get_bloginfo( 'charset' ) );
    218219        $array['content'] = $this->get_content();
    219220        $array['active'] = $this->active();
Note: See TracChangeset for help on using the changeset viewer.