[wp-trac] [WordPress Trac] #14149: Introduce register_settings()

WordPress Trac wp-trac at lists.automattic.com
Wed Jun 30 02:26:59 UTC 2010


#14149: Introduce register_settings()
----------------------------+-----------------------------------------------
 Reporter:  nacin           |       Owner:           
     Type:  enhancement     |      Status:  new      
 Priority:  normal          |   Milestone:  3.1      
Component:  Administration  |     Version:           
 Severity:  normal          |    Keywords:  has-patch
----------------------------+-----------------------------------------------
 Introduce register_settings() as a wrapper for register_setting().

 Currently, you need to loop on register_setting(), or some try to use the
 add_option_whitelist function or filters (which was originally introduced
 partially as a private helper and partially for bulk adds --
 http://mu.wordpress.org/forums/topic/7415, #11730). It's ugly. We can make
 it better.

 Untested patch. It takes either array( option, option, option ) or array(
 option => callback, option => callback ).

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/14149>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list