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

WordPress Trac noreply at wordpress.org
Mon Feb 9 02:21:28 UTC 2015


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

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


Comment:

 In [changeset:"31376"]:
 {{{
 #!CommitTicketReference repository="" revision="31376"
 Default `$parent` in `category_exists()` should default to null rather
 than 0.

 [29863] made the corresponding change in `term_exists()`. Failure to
 change the
 default value in `category_exists()` meant that an unspecified value for
 `$parent` would limit results to top-level categories.

 Includes unit tests and corrected function documentation.

 Props hissy.
 Merges [31140] to the 4.1 branch.
 Fixes #30975.
 }}}

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


More information about the wp-trac mailing list