[wp-trac] [WordPress Trac] #33281: get_term_by() not returning false if ID does not exist
WordPress Trac
noreply at wordpress.org
Tue Aug 18 17:16:10 UTC 2015
#33281: get_term_by() not returning false if ID does not exist
--------------------------+------------------------------
Reporter: charlestonsw | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Taxonomy | Version: 2.3
Severity: normal | Resolution:
Keywords: close | Focuses:
--------------------------+------------------------------
Changes (by helen):
* keywords: => close
* version: trunk => 2.3
Comment:
I imagine it's done this since the introduction of the function in 2.3.
I'm not sure this can reasonably be changed now, given that developers may
be doing strict comparisons now that this kind of change would break. The
inline docs seem like they could use updating to really lay out which
situation returns which value.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/33281#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list