From 92957ea9248fc4ca65439d5d64919b8eafced6d4 Mon Sep 17 00:00:00 2001 From: Nikolay Bachiyski Date: Tue, 21 Jun 2016 14:29:18 +0000 Subject: [PATCH] Admin: Escape attachment name in case it contains special characters Merge of [37774] to the 3.7 branch. git-svn-id: https://develop.svn.wordpress.org/branches/3.7@37795 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/post-template.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-includes/post-template.php b/src/wp-includes/post-template.php index 522ad3e18f..f223941d96 100644 --- a/src/wp-includes/post-template.php +++ b/src/wp-includes/post-template.php @@ -1204,7 +1204,7 @@ function wp_get_attachment_link( $id = 0, $size = 'thumbnail', $permalink = fals if ( trim( $link_text ) == '' ) $link_text = $_post->post_title; - return apply_filters( 'wp_get_attachment_link', "$link_text", $id, $size, $permalink, $icon, $text ); + return apply_filters( 'wp_get_attachment_link', "$link_text", $id, $size, $permalink, $icon, $text ); } /**