Opened 3 years ago
Last modified 4 months ago
#12929 assigned enhancement
Reserved names for taxonomies
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | Future Release |
| Component: | Taxonomy | Version: | |
| Severity: | normal | Keywords: | |
| Cc: | mikeschinkel@…, kevinB, Ken@… |
Description
To prevent issues like #12917, register_taxonomy() should check a list of reserved names, before registering the taxonomy.
Change History (10)
comment:2
mikeschinkel — 3 years ago
- Cc mikeschinkel@… added
Should new reserved names moving forward be prefixed with underscore, maybe?
- Owner changed from filosofo to scribu
- Status changed from new to assigned
comment:7
WraithKenny — 10 months ago
- Cc Ken@… added
comment:8
SergeyBiryukov — 10 months ago
Related: #18263
comment:9
WraithKenny — 10 months ago
I spent some time thinking about this one, and decided it'd make a good Debug Bar extension. There's a hook in register_taxonomy that can be used to setup checks for reserved names. Post type conflicts should be checked later in the execution. Debug Bar would be a great place to output the results.
comment:10
helen — 4 months ago
#23213 was marked as a duplicate.
Note: See
TracTickets for help on using
tickets.

First of all, the list should contain the names of registered post types. I know from experience that having the same name for a post type and for a taxonomy leads to trouble.