[wp-trac] [WordPress Trac] #30975: category_exists() unexpectedly fails due to default parent parameter

WordPress Trac noreply at wordpress.org
Sun Jan 11 01:22:22 UTC 2015


#30975: category_exists() unexpectedly fails due to default parent parameter
--------------------------+--------------------
 Reporter:  hissy         |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  4.1.1
Component:  Taxonomy      |     Version:  4.1
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+--------------------
Changes (by boonebgorges):

 * milestone:  Awaiting Review => 4.1.1


Comment:

 Thanks for the report, hissy. To spell out the "unexpectedly fails" bit:
 In 4.0, `category_exists()`, when not passing a `$parent` param, will
 return the oldest category matching the `$cat_name`, regardless of parent;
 in 4.1, it'll return the oldest category matching `$cat_name` that has no
 parent. Fix + unit tests are incoming.

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


More information about the wp-trac mailing list