Opened 16 years ago
Closed 16 years ago
#13345 closed defect (bug) (fixed)
Cannot create nav menu with name that matches existing term slug
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | 3.0 | Priority: | normal |
| Severity: | blocker | Version: | |
| Component: | Menus | Keywords: | |
| Focuses: | Cc: |
Description
"A term with the slug provided already exists." greets you if you try to create a menu that happens to match the slug of an existing term in any taxonomy. [14229] removed the taxonomy arg passed to is_term() so 'term_slug_exists' is thrown even though the term doesn't exist for the nav_menu taxonomy. We might need to remove passing the slug to wp_insert_term() from wp_create_nav_menu().
Attachments (1)
Change History (4)
Note: See
TracTickets for help on using
tickets.
There's a check at the top of
wp_create_nav_menuthat should be catching this and erroring earlier.