[wp-trac] [WordPress Trac] #15614: wp_get_attachment_image functions should check id for an image

WordPress Trac wp-trac at lists.automattic.com
Tue Nov 30 16:07:28 UTC 2010


#15614: wp_get_attachment_image functions should check id for an image
--------------------------+-------------------------------------------------
 Reporter:  mtdewvirus    |       Owner:                  
     Type:  defect (bug)  |      Status:  new             
 Priority:  normal        |   Milestone:  Awaiting Review 
Component:  Media         |     Version:  3.1             
 Severity:  normal        |    Keywords:  attachment,image
--------------------------+-------------------------------------------------

Comment(by filosofo):

 What are the unexpected results?  `wp_get_attachment_image` calls
 `wp_get_attachment_image_src`, which calls `image_downsize`, and
 `image_downsize` performs that check already.  I don't see how you would
 get anything other than an empty string or `false` already.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/15614#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list