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-section.php

    r32806 r32822  
    224224     */
    225225    public function json() {
    226         $array = wp_array_slice_assoc( (array) $this, array( 'id', 'title', 'description', 'priority', 'panel', 'type' ) );
     226        $array = wp_array_slice_assoc( (array) $this, array( 'id', 'description', 'priority', 'panel', 'type' ) );
     227        $array['title'] = html_entity_decode( $this->title, ENT_QUOTES, get_bloginfo( 'charset' ) );
    227228        $array['content'] = $this->get_content();
    228229        $array['active'] = $this->active();
Note: See TracChangeset for help on using the changeset viewer.