[wp-trac] [WordPress Trac] #30975: category_exists() unexpectedly fails due to default parent parameter
WordPress Trac
noreply at wordpress.org
Sun Jan 11 01:25:21 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: | Focuses:
--------------------------+---------------------------
Changes (by boonebgorges):
* owner: => boonebgorges
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"31140"]:
{{{
#!CommitTicketReference repository="" revision="31140"
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.
Fixes #30975 for trunk.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/30975#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list