[wp-trac] [WordPress Trac] #38734: Dogfood the Settings API

WordPress Trac noreply at wordpress.org
Sun Dec 4 21:11:50 UTC 2016


#38734: Dogfood the Settings API
-------------------------------------+-------------------------------------
 Reporter:  johnbillion              |       Owner:  johnbillion
     Type:  enhancement              |      Status:  assigned
 Priority:  normal                   |   Milestone:  4.8
Component:  Options, Meta APIs       |     Version:  2.7
 Severity:  normal                   |  Resolution:
 Keywords:  needs-patch settings-    |     Focuses:  accessibility,
  api                                |  administration
-------------------------------------+-------------------------------------

Comment (by johnbillion):

 [attachment:38734.diff] is an MVP (minimum viable patch) which does the
 following for the General Settings screen:

 * Registers all of the settings.
 * Registers fields for each of the existing settings table rows.
 * Migrates all the hardcoded fields into settings fields.

 TODO: Replace all the new procedural functions with a nice class per
 settings screen (eg. `WP_Settings_General`) with a method for each field
 and setting.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/38734#comment:10>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list