[wp-trac] [WordPress Trac] #21488: Add Default Callback Functions for add_settings_field()

WordPress Trac wp-trac at lists.automattic.com
Mon Aug 6 07:00:24 UTC 2012


#21488: Add Default Callback Functions for add_settings_field()
-------------------------+------------------------------
 Reporter:  mordauk      |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  General      |     Version:
 Severity:  normal       |  Resolution:
 Keywords:  has-patch    |
-------------------------+------------------------------

Comment (by jbobich):

 This would really help make it easier to create basic option pages and add
 more consistency among plugin and theme authors with their option panels.
 Make it so. +1

 Some issues mordauk and I had when putting this together today was getting
 "default" option values to work with checkbox and checkbox option types,
 so we left it off those option types.

 Also, if one does choose to use these default option type callbacks the
 way we've got them here, you must have each option setup as a standard,
 single option field. In other words, you couldn't have your settings page
 work by saving all your settings to a single option field as a multi-
 dimensional array. -- Not sure if this is too serious of an issue, but
 maybe someone could have a look at that part of things and see if it's
 possible to allow that somehow.

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


More information about the wp-trac mailing list