[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:32:39 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 mtdewvirus):

 Replying to [comment:4 filosofo]:
 > Isn't that the correct behavior, though? You have to be requesting the
 icon in particular, which might exist for the video object.

 The param for both functions should be an image attachment id:
  @param int $attachment_id Image attachment ID

 In my testing, the returned image has nothing to do with the video. It
 returns a completely different attachment from the Media Library.

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


More information about the wp-trac mailing list