[wp-trac] [WordPress Trac] #24257: is_attachment() should accept $attachment parameter

WordPress Trac noreply at wordpress.org
Fri Aug 9 21:39:33 UTC 2013


#24257: is_attachment() should accept $attachment parameter
-------------------------+------------------------------
 Reporter:  alex-ye      |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Query        |     Version:  3.5.1
 Severity:  normal       |  Resolution:
 Keywords:  close        |
-------------------------+------------------------------
Changes (by wonderboymusic):

 * keywords:  has-patch => close


Comment:

 You aren't checking the `post_type` - nothing about that function is
 attachment-specific, it could evaluate true against an arbitrarily-passed
 post

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


More information about the wp-trac mailing list