[wp-trac] [WordPress Trac] #18045: Replace tabled-based settings form markup with do_settings_sections() in Twenty Eleven

WordPress Trac wp-trac at lists.automattic.com
Mon Jul 11 19:58:06 UTC 2011


#18045: Replace tabled-based settings form markup with do_settings_sections() in
Twenty Eleven
---------------------------+--------------------
 Reporter:  chipbennett    |       Owner:
     Type:  enhancement    |      Status:  new
 Priority:  high           |   Milestone:  3.2.1
Component:  Bundled Theme  |     Version:  3.2
 Severity:  normal         |  Resolution:
 Keywords:  has-patch      |
---------------------------+--------------------
Changes (by nacin):

 * keywords:  has-patch needs-testing => has-patch


Comment:

 Attached patch:

  * Moves add_settings_section and add_settings_field calls into
 twentyeleven_theme_options_init().

  * Removes unneeded $default_options variables from each of the settings
 fields callbacks.

  * Provides a way to hide the section title, in do_settings_sections.

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


More information about the wp-trac mailing list