From d192a8ca09fed3905e49ad9aea87b849269592db Mon Sep 17 00:00:00 2001 From: Peter Westwood Date: Fri, 23 Apr 2010 21:23:32 +0000 Subject: [PATCH] Switch to using esc_url{_raw} for the shortlink output as it is a url not just any attribute. Fixes #10640. git-svn-id: https://develop.svn.wordpress.org/trunk@14208 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/link-template.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/link-template.php b/wp-includes/link-template.php index 7643668af1..2ef9d54550 100644 --- a/wp-includes/link-template.php +++ b/wp-includes/link-template.php @@ -2204,7 +2204,7 @@ function wp_shortlink_wp_head() { if ( empty( $shortlink ) ) return; - echo "\n"; + echo "\n"; } /** @@ -2254,7 +2254,7 @@ function the_shortlink( $text = '', $title = '', $before = '', $after = '' ) { $shortlink = wp_get_shortlink( $post->ID ); if ( !empty( $shortlink ) ) { - $link = '' . $text . ''; + $link = '' . $text . ''; $link = apply_filters( 'the_shortlink', $link, $shortlink, $text, $title ); echo $before, $link, $after; }