WordPress.org

Make WordPress Core

Changeset 32893


Ignore:
Timestamp:
06/20/2015 07:54:47 PM (4 years ago)
Author:
ocean90
Message:

Customizer: Escape original title of menu items.

see #32576.

Location:
trunk/src/wp-includes
Files:
2 edited

Legend:

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

    r32889 r32893  
    16181618                <# if ( 'custom' != data.item_type && '' != data.original_title ) { #>
    16191619                <p class="link-to-original">
    1620                     <?php printf( __( 'Original: %s' ), '<a class="original-link" href="{{ data.url }}">{{{ data.original_title }}}</a>' ); ?>
     1620                    <?php printf( __( 'Original: %s' ), '<a class="original-link" href="{{ data.url }}">{{ data.original_title }}</a>' ); ?>
    16211621                </p>
    16221622                <# } #>
  • trunk/src/wp-includes/class-wp-customize-setting.php

    r32878 r32893  
    867867
    868868                    if ( ! empty( $original_title ) ) {
    869                         $value['original_title'] = $original_title;
     869                        $value['original_title'] = html_entity_decode( $original_title, ENT_QUOTES, get_bloginfo( 'charset' ) );
    870870                    }
    871871                }
Note: See TracChangeset for help on using the changeset viewer.