[wp-trac] [WordPress Trac] #18285: New Settings API and workflow
WordPress Trac
wp-trac at lists.automattic.com
Thu Jul 28 20:39:29 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 | Keywords:
----------------------------+-----------------
A new Settings API should ideally be less painful.
That includes registration of options, creating fields and forms, and
handling errors.
Quick suggestions, which Ryan and others can elaborate on, as well as
offer justification for:
- Stop using options.php as a POST handler.
- Object-oriented approach, rather than passing handles around
everywhere.
- Should be flexible enough to leverage the new Settings API in the
Network and User admins.
- Form/field construction should be easy, and core should use it.
- Core should also show/hide relevant fields based on the UI, perhaps
with some sort of caps integration. Likewise, authorization for saving
options should be incorporated beyond the sanitization callback.
Table markup should also be moved to CSS, which requires #16413 and core
leveraging the fields API.
Anything that is not done, can be moved to 3.4. We should not rush this
API, and we should be absolutely satisfied with it.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/18285>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list