From ef34785160169c96e2741d0eebc4ff409ebce3de Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Tue, 6 May 2014 21:35:16 +0000 Subject: [PATCH] In `wp_get_attachment_link()`, `$post_title` is set and then not used. See #27882. Built from https://develop.svn.wordpress.org/trunk@28331 git-svn-id: http://core.svn.wordpress.org/trunk@28159 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/post-template.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/wp-includes/post-template.php b/wp-includes/post-template.php index d2c5411821..0f07020f6c 100644 --- a/wp-includes/post-template.php +++ b/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 )