[wp-trac] [WordPress Trac] #21606: term_exists returns 0 and null
WordPress Trac
noreply at wordpress.org
Sat Jan 10 18:41:38 UTC 2015
#21606: term_exists returns 0 and null
--------------------------+-------------------------
Reporter: barrykooij | Owner: barrykooij
Type: defect (bug) | Status: closed
Priority: normal | Milestone:
Component: Taxonomy | Version: 3.4.1
Severity: normal | Resolution: worksforme
Keywords: has-patch | Focuses:
--------------------------+-------------------------
Changes (by boonebgorges):
* status: new => closed
* resolution: => worksforme
* milestone: Future Release =>
Comment:
Since [29865], `term_exists()` has returned `null` in all cases where no
term is found. This is the opposite of what was suggested in
[attachment:21606.diff] (which suggests returning 0 in these cases), but
it does make return values consistent in case of failure, which is what
matters for this ticket.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/21606#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list