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
This commit is contained in:
parent
b626b11590
commit
11e65eb200
|
@ -1412,8 +1412,6 @@ function wp_get_attachment_link( $id = 0, $size = 'thumbnail', $permalink = fals
|
||||||
if ( $permalink )
|
if ( $permalink )
|
||||||
$url = get_attachment_link( $_post->ID );
|
$url = get_attachment_link( $_post->ID );
|
||||||
|
|
||||||
$post_title = esc_attr( $_post->post_title );
|
|
||||||
|
|
||||||
if ( $text )
|
if ( $text )
|
||||||
$link_text = $text;
|
$link_text = $text;
|
||||||
elseif ( $size && 'none' != $size )
|
elseif ( $size && 'none' != $size )
|
||||||
|
|
Loading…
Reference in New Issue