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

WordPress Trac noreply at wordpress.org
Fri Oct 3 14:19:38 UTC 2014


#29851: term_exists gives back the wrong term when it has parents
--------------------------+-----------------------------
 Reporter:  allaerd       |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Taxonomy      |    Version:  4.0
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 when i have this terms

 server->hp->ram

 and i call
 {{{
 term_exists( 'hp' , 'product_cat', 0);
 }}}

 i expect to get back false

 when i have this

 hp->ram

 i expect to get back a positive result

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


More information about the wp-trac mailing list