Changeset 7263 for trunk/wp-includes/post-template.php
- Timestamp:
- 03/12/2008 08:10:00 AM (19 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/post-template.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/post-template.php
r7172 r7263 371 371 372 372 // get an attachment page link using an image or icon if possible 373 function wp_get_attachment_link($id = 0, $size = 'thumbnail', $permalink = false ) {373 function wp_get_attachment_link($id = 0, $size = 'thumbnail', $permalink = false, $icon = false) { 374 374 $_post = & get_post( intval($id) ); 375 375 … … 382 382 $post_title = attribute_escape($_post->post_title); 383 383 384 $link_text = wp_get_attachment_image($id, $size );384 $link_text = wp_get_attachment_image($id, $size, $icon); 385 385 if ( !$link_text ) 386 386 $link_text = $_post->post_title;
Note:
See TracChangeset
for help on using the changeset viewer.