Changeset 44471
- Timestamp:
- 01/08/2019 09:08:06 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/post-template.php
r44411 r44471 1603 1603 * 1604 1604 * @since 2.7.0 1605 * @since 5.1.0 Added the $attr parameter. 1605 1606 * 1606 1607 * @param string $link_html The page link HTML output. … … 1611 1612 * @param bool $icon Whether to include an icon. Default false. 1612 1613 * @param string|bool $text If string, will be link text. Default false. 1614 * @param array|string $attr Array or string of attributes. Default empty. 1613 1615 */ 1614 return apply_filters( 'wp_get_attachment_link', "<a href='" . esc_url( $url ) . "'>$link_text</a>", $id, $size, $permalink, $icon, $text );1616 return apply_filters( 'wp_get_attachment_link', "<a href='" . esc_url( $url ) . "'>$link_text</a>", $id, $size, $permalink, $icon, $text, $attr ); 1615 1617 } 1616 1618
Note: See TracChangeset
for help on using the changeset viewer.