[wp-trac] [WordPress Trac] #6086: New functions for attachment image display

WordPress Trac wp-trac at lists.automattic.com
Tue Mar 4 03:22:04 GMT 2008


#6086: New functions for attachment image display
-------------------------+--------------------------------------------------
 Reporter:  tellyworth   |       Owner:  anonymous
     Type:  enhancement  |      Status:  new      
 Priority:  normal       |   Milestone:  2.5      
Component:  General      |     Version:           
 Severity:  normal       |    Keywords:  has-patch
-------------------------+--------------------------------------------------
 This replaces some of the old code like get_attachment_icon(),
 get_attachment_innerHTML() and family with new image functions.  The main
 visible change is that attachment permalink pages will now use the Medium
 size when displaying an image inline via prepend_attachment().  For
 developers, some new API functions replace the old ones for displaying
 attachment icons and images.

 the_attachment_link() is still in place, with most of the rest replaced by
 wp_get_attachment_link() and wp_get_attachment_image().  I've left
 comments ahead of the functions I think ought to be deprecated but haven't
 otherwise touched them.

 Kubrick still calls get_the_attachment_link() and relies on its quirky
 behaviour.  I'm not sure whether it's better to change Kubrick, or alter
 get_the_attachment_link() so that it uses the new image functions.

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


More information about the wp-trac mailing list