[wp-trac] [WordPress Trac] #18746: Make WP_Query::is_tag() accept a term-name and term-id

WordPress Trac noreply at wordpress.org
Fri Sep 6 17:26:05 UTC 2013


#18746: Make WP_Query::is_tag() accept a term-name and term-id
-----------------------------------+-----------------------------
 Reporter:  ramiy                  |       Owner:  wonderboymusic
     Type:  enhancement            |      Status:  closed
 Priority:  normal                 |   Milestone:  3.7
Component:  Taxonomy               |     Version:  3.3
 Severity:  normal                 |  Resolution:  fixed
 Keywords:  has-patch needs-codex  |
-----------------------------------+-----------------------------
Changes (by wonderboymusic):

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


Comment:

 In [changeset:"25287"]:
 {{{
 #!CommitTicketReference repository="" revision="25287"
 Allow `is_tag()` to accept `term_id`, `slug`, 'term_name` or array of any.
 Many other `is_*()` funcs already do this. Adds unit tests.

 Props ramiy.
 Fixes #18746.
 }}}

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


More information about the wp-trac mailing list