Menus: Use more appropriate escaping functions in class `Walker_Nav_Menu_Edit`.
This changeset replaces `esc_attr` escaping function with `esc_url` as it is more appropriate in the context of a link's `href` attribute. Props audrasjb, aniketpatel. Fixes #56108. Built from https://develop.svn.wordpress.org/trunk@53654 git-svn-id: http://core.svn.wordpress.org/trunk@53213 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
2c768f7c9d
commit
0f3b3218c2
|
@ -265,7 +265,7 @@ class Walker_Nav_Menu_Edit extends Walker_Nav_Menu {
|
|||
<p class="link-to-original">
|
||||
<?php
|
||||
/* translators: %s: Link to menu item's original object. */
|
||||
printf( __( 'Original: %s' ), '<a href="' . esc_attr( $menu_item->url ) . '">' . esc_html( $original_title ) . '</a>' );
|
||||
printf( __( 'Original: %s' ), '<a href="' . esc_url( $menu_item->url ) . '">' . esc_html( $original_title ) . '</a>' );
|
||||
?>
|
||||
</p>
|
||||
<?php endif; ?>
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '6.1-alpha-53653';
|
||||
$wp_version = '6.1-alpha-53654';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue