Make WordPress Core

Opened 10 years ago

Closed 8 years ago

Last modified 8 years ago

#28795 closed enhancement (invalid)

Group Options by sections

Reported by: alecuf's profile alecuf Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Options, Meta APIs Keywords: needs-patch close
Focuses: Cc:


Enhancement: new "section" column to wp_options table
The new column will be used to organize options better. It may serve as a namespace for options. Each plugin will get its section. This way it will be easier to clean the wp_options table from unused options, easier to call all the options of a plugin/theme. For now developers use hacks like naming all the options with a "namespace_" at the begining, or saving all the options in one big option cell. Transients will go to "transient" section, etc.
It will be easier to make this compatible with older versions of WP.

Change History (5)

#1 @alecuf
10 years ago

It will be easy, not easier, to make this compatible with older versions of WP.

#2 @MikeHansenMe
9 years ago

This makes sense however I do not think we have to add a column to the db. We could introduce a few new functions to automatically prefix the option name and create the same effect. I will work up an example.

#3 @swissspidy
9 years ago

  • Keywords needs-patch added

I don't think adding another column to the database is going to happen.

Having an option prefix for plugins is probably easier, it just needs to work with the length limit though (the option_name field is currently VARCHAR(191)).

#4 @alecuf
8 years ago

  • Keywords close added
  • Resolution set to invalid
  • Status changed from new to closed

#5 @swissspidy
8 years ago

  • Milestone Awaiting Review deleted
Note: See TracTickets for help on using tickets.