Changeset 6876 for trunk/wp-includes/post-template.php
- Timestamp:
- 02/16/2008 09:54:47 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/post-template.php
r6711 r6876 367 367 } 368 368 369 function get_the_attachment_link($id = 0, $fullsize = false, $max_dims = false ) {369 function get_the_attachment_link($id = 0, $fullsize = false, $max_dims = false, $permalink = false) { 370 370 $id = (int) $id; 371 371 $_post = & get_post($id); … … 373 373 if ( ('attachment' != $_post->post_type) || !$url = wp_get_attachment_url($_post->ID) ) 374 374 return __('Missing Attachment'); 375 376 if ( $permalink ) 377 $url = get_attachment_link($_post->ID); 375 378 376 379 $post_title = attribute_escape($_post->post_title);
Note: See TracChangeset
for help on using the changeset viewer.