[wp-trac] [WordPress Trac] #33281: get_term_by() not returning false if ID does not exist

WordPress Trac noreply at wordpress.org
Wed Sep 16 18:49:30 UTC 2015


#33281: get_term_by() not returning false if ID does not exist
--------------------------+---------------------------
 Reporter:  charlestonsw  |       Owner:  boonebgorges
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:  4.4
Component:  Taxonomy      |     Version:  2.3
 Severity:  normal        |  Resolution:  fixed
 Keywords:  has-patch     |     Focuses:
--------------------------+---------------------------
Changes (by boonebgorges):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"34246"]:
 {{{
 #!CommitTicketReference repository="" revision="34246"
 Failed `get_term_by()` lookups should always return `false`.

 Previously, we sometimes returned `null`.

 Props charlestonsw, tyxla.
 Fixes #33281.
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/33281#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list