diff --git a/wp-includes/post-template.php b/wp-includes/post-template.php index be462587a2..c381ae1593 100644 --- a/wp-includes/post-template.php +++ b/wp-includes/post-template.php @@ -1436,7 +1436,7 @@ function wp_get_attachment_link( $id = 0, $size = 'thumbnail', $permalink = fals * @param bool $icon Whether to include an icon. Default false. * @param string|bool $text If string, will be link text. Default false. */ - 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 ); } /**