Opened 15 years ago
Closed 14 years ago
#8167 closed enhancement (duplicate)
Unable to create 2 categories with the same title under different parents
Reported by: | DD32 | Owned by: | dd32 |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 2.7 |
Component: | Taxonomy | Keywords: | close |
Focuses: | Cc: |
Description
If you attempt to create 2 categories: \Category1\TestCategory and \Category2\TestCategory, TestCategory will fail to be created under the 2nd category, failing on "The category you are trying to create already exists."
It appears that category_exists()
which in turn calls is_term()
doesnt support hierarchies, Instead mearly checking to see if a Term with that Name exists within the taxonomy.
Partially related to: #5034
Change History (10)
#4
@
14 years ago
This has been "fixed" during #11838 (I assume)
The slugs created seem a bit strange however.. but the Names work.
Eg:
Category: Test Parent: None slug: test URL: /category/test/ Category: Test Parent: Parent Cat slug: test-parent-cat URL: /category/parent-cat/test-parent-cat/
Note: See
TracTickets for help on using
tickets.
The requirement for a unique name for categories regardless of hierarchy is documented in the codex, so this should be categorized (heh) as a feature request/enhancement rather than a defect.