[wp-trac] [WordPress Trac] #18285: New Settings API and workflow

WordPress Trac wp-trac at lists.automattic.com
Sat Jul 30 19:23:33 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):

 Easy is part of the point.  The current API is fairly abominable to use.

 That said, I think some of these other APIs try to do too much.  Part of
 that is because the current core API sucks so much.  Things we should
 consider up front:

 Don't run code on every admin page load that doesn't need to be run.  The
 only thing that needs to run on init/admin_init is the registration of the
 sanitize callback (and cap callback if we add that).  We need to separate
 registering these callbacks from registering UI related stuff.  A single
 "setting" in the UI is often multiple options in the db.  Some of these
 APIs don't offer this flexibility.

 Move away from options.php.  Make it easy for pages to handle their own
 posts.  We could possibly get rid of the whole notion of registering which
 options a page can handle  if we do this.  Each page knows what options it
 should handle.  This might allow us to un-API some things.

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


More information about the wp-trac mailing list