Opened 11 years ago
Closed 11 years ago
#30975 closed defect (bug) (fixed)
category_exists() unexpectedly fails due to default parent parameter
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 4.1.1 | Priority: | normal |
| Severity: | normal | Version: | 4.1 |
| Component: | Taxonomy | Keywords: | commit fixed-major |
| Focuses: | Cc: |
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.
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.