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

WordPress Trac noreply at wordpress.org
Wed Jan 22 22:30:38 UTC 2014


#24257: is_attachment() should accept $attachment parameter
-------------------------+-----------------------------
 Reporter:  alex-ye      |       Owner:  wonderboymusic
     Type:  enhancement  |      Status:  closed
 Priority:  normal       |   Milestone:  3.9
Component:  Query        |     Version:  3.5.1
 Severity:  normal       |  Resolution:  fixed
 Keywords:  has-patch    |
-------------------------+-----------------------------
Changes (by wonderboymusic):

 * owner:   => wonderboymusic
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"27016"]:
 {{{
 #!CommitTicketReference repository="" revision="27016"
 Let `is_attachment()` accept an $attachment parameter, similar to
 `is_page()` and `is_single()`. Adds Unit Tests for all 3.

 Props alex-ye for the initial patch.
 Fixes #24257.
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/24257#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list