[wp-trac] [WordPress Trac] #18285: New Settings API and workflow
WordPress Trac
wp-trac at lists.automattic.com
Sat Jul 30 19:49:58 UTC 2011
#18285: New Settings API and workflow
----------------------------+------------------
Reporter: nacin | Owner:
Type: task (blessed) | Status: new
Priority: normal | Milestone: 3.3
Component: Plugins | Version:
Severity: normal | Resolution:
Keywords: |
----------------------------+------------------
Comment (by ryan):
We need register_option(). This would look much like register_meta() and
live in wp-includes/functions.php with the other *_option() functions.
Plugins would call this during init so that their options always have
sanitization registered in case XML-RPC or other places manipulate the
option.
If we lose options.php there is no need to keep a big list of what is
registered for each page. Each page will have their own POST and XHR
handlers and will know what options it deals with.
This leaves Sections and Settings within the Sections. Something like
prettyboymp's API seems fine for this. I would probably lose the
*_menu_page() level stuff. I think that should be done separately and
section and settings should be registered in response to the page load
hook for the desired page being fired.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/18285#comment:22>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list