Opened 3 years ago

Last modified 4 months ago

#12929 assigned enhancement

Reserved names for taxonomies

Reported by: scribu 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)

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.

  • 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
  • Cc kevinB added
  • Milestone changed from Awaiting Triage to Future Release
  • Owner scribu deleted
  • Cc Ken@… added

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.

#23213 was marked as a duplicate.

Note: See TracTickets for help on using tickets.