mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-17 16:15:24 +01:00
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:
parent
f127478bde
commit
759bcdbad1
@ -1617,7 +1617,7 @@ class WP_Customize_Nav_Menu_Item_Control extends WP_Customize_Control {
|
|||||||
<div class="menu-item-actions description-thin submitbox">
|
<div class="menu-item-actions description-thin submitbox">
|
||||||
<# if ( 'custom' != data.item_type && '' != data.original_title ) { #>
|
<# if ( 'custom' != data.item_type && '' != data.original_title ) { #>
|
||||||
<p class="link-to-original">
|
<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>
|
</p>
|
||||||
<# } #>
|
<# } #>
|
||||||
|
|
||||||
|
@ -866,7 +866,7 @@ class WP_Customize_Nav_Menu_Item_Setting extends WP_Customize_Setting {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ( ! empty( $original_title ) ) {
|
if ( ! empty( $original_title ) ) {
|
||||||
$value['original_title'] = $original_title;
|
$value['original_title'] = html_entity_decode( $original_title, ENT_QUOTES, get_bloginfo( 'charset' ) );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @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.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
Loading…
Reference in New Issue
Block a user