Opened 18 years ago
Closed 17 years ago
#8167 closed enhancement (duplicate)
Unable to create 2 categories with the same title under different parents
| Reported by: | DD32 | Owned by: | dd32 |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Taxonomy | Version: | 2.7 |
| Severity: | normal | Keywords: | close |
| Cc: | Focuses: |
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
@
17 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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
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.