Opened 12 years ago
Closed 12 years ago
#30975 closed defect (bug) (fixed)
category_exists() unexpectedly fails due to default parent parameter
| Reported by: | hissy | Owned by: | boonebgorges |
|---|---|---|---|
| Priority: | normal | Milestone: | 4.1.1 |
| Component: | Taxonomy | Version: | 4.1 |
| Severity: | normal | Keywords: | commit fixed-major |
| Cc: | Focuses: |
Description (last modified by )
The default $parent value of term_exists() has been changed to null from 0, but the default $parent value of category_exists() is still 0. We need to change this to null.
Change History (5)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Thanks for the report, hissy. To spell out the "unexpectedly fails" bit: In 4.0,
category_exists(), when not passing a$parentparam, will return the oldest category matching the$cat_name, regardless of parent; in 4.1, it'll return the oldest category matching$cat_namethat has no parent. Fix + unit tests are incoming.