Changeset 9847 for trunk/wp-includes/post-template.php
- Timestamp:
- 11/23/2008 06:37:15 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/post-template.php
r9844 r9847 758 758 * @return string HTML content. 759 759 */ 760 function wp_get_attachment_link($id = 0, $size = 'thumbnail', $permalink = false, $icon = false ) {760 function wp_get_attachment_link($id = 0, $size = 'thumbnail', $permalink = false, $icon = false, $imgwidth = false) { 761 761 $id = intval($id); 762 762 $_post = & get_post( $id ); … … 770 770 $post_title = attribute_escape($_post->post_title); 771 771 772 $link_text = wp_get_attachment_image($id, $size, $icon );772 $link_text = wp_get_attachment_image($id, $size, $icon, $imgwidth); 773 773 if ( !$link_text ) 774 774 $link_text = $_post->post_title;
Note: See TracChangeset
for help on using the changeset viewer.