[wp-trac] [WordPress Trac] #29851: term_exists gives back the wrong term when it has parents

WordPress Trac noreply at wordpress.org
Thu Oct 9 02:48:49 UTC 2014


#29851: term_exists gives back the wrong term when it has parents
--------------------------+---------------------------
 Reporter:  allaerd       |       Owner:  boonebgorges
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:  4.1
Component:  Taxonomy      |     Version:  4.0
 Severity:  normal        |  Resolution:  fixed
 Keywords:  has-patch     |     Focuses:
--------------------------+---------------------------
Changes (by boonebgorges):

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


Comment:

 In [changeset:"29863"]:
 {{{
 #!CommitTicketReference repository="" revision="29863"
 Fix term_exists() for parent = 0.

 Passing a 0 (or '0') as the 'parent' param of term_exists() should limit
 results to terms with no parent.

 Adds unit test.

 Fixes #29851.
 }}}

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


More information about the wp-trac mailing list