[wp-trac] [WordPress Trac] #22372: Bug in wp_attachment_is_image

WordPress Trac noreply at wordpress.org
Tue Nov 6 20:59:54 UTC 2012


#22372: Bug in wp_attachment_is_image
--------------------------+----------------------
 Reporter:  odedstr2      |       Owner:
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:
Component:  Media         |     Version:  3.4.2
 Severity:  trivial       |  Resolution:  invalid
 Keywords:                |
--------------------------+----------------------
Changes (by SergeyBiryukov):

 * status:  new => closed
 * resolution:   => invalid
 * component:  General => Media
 * severity:  major => trivial
 * milestone:  Awaiting Review =>


Comment:

 `$post->ID` is actually the same value, since `$post` is set earlier in
 line 4028: [[BR]]
 http://core.trac.wordpress.org/browser/tags/3.4.2/wp-
 includes/post.php#L4028

 It could be `$post_id` as well, but there's no bug here.

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


More information about the wp-trac mailing list