[wp-trac] Re: [WordPress Trac] #6354: New media/attachment template tags need some love

WordPress Trac wp-trac at lists.automattic.com
Fri Mar 28 02:27:31 GMT 2008


#6354: New media/attachment template tags need some love
----------------------+-----------------------------------------------------
 Reporter:  westi     |        Owner:  westi     
     Type:  defect    |       Status:  closed    
 Priority:  high      |    Milestone:  2.5       
Component:  Template  |      Version:  2.5       
 Severity:  blocker   |   Resolution:  worksforme
 Keywords:            |  
----------------------+-----------------------------------------------------
Changes (by andy):

  * status:  new => closed
  * resolution:  => worksforme

Comment:

 The function names are terrible but not all new with 2.5:

 wp_get_attachment_url returns the file URL

 get_attachment_link returns the attachment permalink URL

 wp_get_attachment_link returns an A tag with the option to use the file
 URL or the permalink.

 If you want a text link to an image, use get_attachment_link.

-- 
Ticket URL: <http://trac.wordpress.org/ticket/6354#comment:5>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list