[wp-trac] [WordPress Trac] #12526: Introduce has_term() to the tax API
WordPress Trac
wp-trac at lists.automattic.com
Fri Oct 1 23:16:39 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):
Well the natural order is that you start with the more broad one (e.g.
taxnomony) and then you locate the concrete in there (e.g. term). So my
first argument is the expected order of arguments. Remember, this is
introducing a new function.
Next to that I just prooved you wrong. There are more than that one
function where this is the case.
NULL term as a joker. Awful if you ask me. I suggest to add an aditional
function: has_taxonomy() and then to check for taxnonomy only - not for a
term (as the function name suggests).
Naming should be precise. At least we should try hard if we introduce
something new :)
--
Ticket URL: <http://core.trac.wordpress.org/ticket/12526#comment:17>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list