[wp-trac] [WordPress Trac] #4104: get_the_attachment_link returns wrong link or fails

WordPress Trac wp-trac at lists.automattic.com
Fri Apr 6 18:25:58 GMT 2007


#4104: get_the_attachment_link returns wrong link or fails
----------------------+-----------------------------------------------------
 Reporter:  chronodd  |       Owner:  anonymous
     Type:  defect    |      Status:  new      
 Priority:  low       |   Milestone:  2.4      
Component:  General   |     Version:           
 Severity:  normal    |    Keywords:           
----------------------+-----------------------------------------------------
 The call to `wp_get_attachment_url` should pass the post id as argument.

 see source:/trunk/wp-includes/post-template.php at 5049#L348 (current trunk)

 Current behavior:
 `wp_get_attachment_url` uses postid=0, retrieves whatever post (which may
 not be an attachment), then either fails (not an attachment) or delivers
 wrong url/guid.

-- 
Ticket URL: <http://trac.wordpress.org/ticket/4104>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list