[wp-trac] [WordPress Trac] #12526: Introduce has_term() to the tax API

WordPress Trac wp-trac at lists.automattic.com
Fri Oct 1 22:35:15 UTC 2010


#12526: Introduce has_term() to the tax API
-------------------------------------+--------------------------------------
 Reporter:  ptahdunbar               |        Owner:          
     Type:  enhancement              |       Status:  reopened
 Priority:  normal                   |    Milestone:  3.1     
Component:  Taxonomy                 |      Version:  3.0     
 Severity:  normal                   |   Resolution:          
 Keywords:  has-patch needs-refresh  |  
-------------------------------------+--------------------------------------

Comment(by hakre):

 Made a patch that puts the arguments into the expected order and removes
 their optional status (at least for the first two) as it makes no sense to
 run a check on a NULL taxononmy or look for the NULL term.

 Additionally I tried to make the docblocks less complicate. It's far away
 from perfect, just one little step, I'm sure everybody else will find
 additional stuff that can be improved with the docblocks. Looks like a lot
 of redundant information in there.

 There were some minor issues that looked like being created by doing copy
 & paste unreviewed.

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


More information about the wp-trac mailing list