[wp-trac] [WordPress Trac] #16278: Designate core options in options table

WordPress Trac wp-trac at lists.automattic.com
Tue Jan 18 06:40:05 UTC 2011


#16278: Designate core options in options table
-------------------------+----------------------
 Reporter:  ryan_b       |       Owner:
     Type:  enhancement  |      Status:  closed
 Priority:  normal       |   Milestone:
Component:  Database     |     Version:
 Severity:  minor        |  Resolution:  wontfix
 Keywords:               |
-------------------------+----------------------
Changes (by mikeschinkel):

 * cc: mikeschinkel@… (added)


Comment:

 Adding a `core` column makes little sense given how careful the team is to
 modify the database (which is a good thing) but I think his use-cases
 should not be immediately dismissed.  I can definitely see value in a
 registration of option keys so that plugins that need access to that meta
 data could use it.

 One method could be to add a hook named (something like) `'option_keys'`
 that when called would return an array of option keys where the value of
 might me an array of meta about the key, such as `'owner' => ('core',
 "{$plugin_slug}", etc.)`, `'status' => ('persistent','transitory', etc.)`,
 `'default_value'`and more. Then core could implement those hooks to enable
 a plugin to inspect the data for maintenance routines.  And plugins could
 provide these hooks too, of course.

 I guess what I'm suggesting is to explore @ryan_b's use-cases rather than
 just closing the ticket as there's probably something of value in his
 request.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/16278#comment:4>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list