From ca0b2d60889eac867c63a14d40ed7cbc0ce2cb23 Mon Sep 17 00:00:00 2001 From: westi 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: http://svn.automattic.com/wordpress/trunk@14208 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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; }