diff --git a/src/wp-includes/post-template.php b/src/wp-includes/post-template.php
index 924e3996fb..844df73be0 100644
a
|
b
|
function wp_get_attachment_link( $id = 0, $size = 'thumbnail', $permalink = fals |
1530 | 1530 | * @param bool $permalink Whether to add permalink to image. Default false. |
1531 | 1531 | * @param bool $icon Whether to include an icon. Default false. |
1532 | 1532 | * @param string|bool $text If string, will be link text. Default false. |
| 1533 | * @param array|string $attr Array or string of attributes. Default empty. |
1533 | 1534 | */ |
1534 | | return apply_filters( 'wp_get_attachment_link', "<a href='" . esc_url( $url ) . "'>$link_text</a>", $id, $size, $permalink, $icon, $text ); |
| 1535 | return apply_filters( 'wp_get_attachment_link', "<a href='" . esc_url( $url ) . "'>$link_text</a>", $id, $size, $permalink, $icon, $text, $attr ); |
1535 | 1536 | } |
1536 | 1537 | |
1537 | 1538 | /** |