From 11e65eb200178ca3a0307400723cdf619152cf94 Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Tue, 6 May 2014 21:34:10 +0000 Subject: [PATCH] In `wp_get_attachment_link()`, `$post_title` is set and then not used. See #27882. git-svn-id: https://develop.svn.wordpress.org/trunk@28331 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/post-template.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/wp-includes/post-template.php b/src/wp-includes/post-template.php index d2c5411821..0f07020f6c 100644 --- a/src/wp-includes/post-template.php +++ b/src/wp-includes/post-template.php @@ -1412,8 +1412,6 @@ function wp_get_attachment_link( $id = 0, $size = 'thumbnail', $permalink = fals if ( $permalink ) $url = get_attachment_link( $_post->ID ); - $post_title = esc_attr( $_post->post_title ); - if ( $text ) $link_text = $text; elseif ( $size && 'none' != $size )