Customizer: Escape original title of menu items.

see #32576.
Built from https://develop.svn.wordpress.org/trunk@32893


git-svn-id: http://core.svn.wordpress.org/trunk@32864 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Dominik Schilling 2015-06-20 19:55:25 +00:00
parent f127478bde
commit 759bcdbad1
3 changed files with 3 additions and 3 deletions

View File

@ -1617,7 +1617,7 @@ class WP_Customize_Nav_Menu_Item_Control extends WP_Customize_Control {
<div class="menu-item-actions description-thin submitbox">
<# if ( 'custom' != data.item_type && '' != data.original_title ) { #>
<p class="link-to-original">
<?php printf( __( 'Original: %s' ), '<a class="original-link" href="{{ data.url }}">{{{ data.original_title }}}</a>' ); ?>
<?php printf( __( 'Original: %s' ), '<a class="original-link" href="{{ data.url }}">{{ data.original_title }}</a>' ); ?>
</p>
<# } #>

View File

@ -866,7 +866,7 @@ class WP_Customize_Nav_Menu_Item_Setting extends WP_Customize_Setting {
}
if ( ! empty( $original_title ) ) {
$value['original_title'] = $original_title;
$value['original_title'] = html_entity_decode( $original_title, ENT_QUOTES, get_bloginfo( 'charset' ) );
}
}
}

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.3-alpha-32892';
$wp_version = '4.3-alpha-32893';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.