[wp-trac] [WordPress Trac] #17851: Wrapping Sections with add_settings_section
WordPress Trac
wp-trac at lists.automattic.com
Mon Jun 20 03:09:34 UTC 2011
#17851: Wrapping Sections with add_settings_section
-------------------------+-----------------------------
Reporter: griffinjt | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 3.1.3
Severity: normal | Keywords: ui-feedback
-------------------------+-----------------------------
This is my first time reporting, so excuse my ignorance. I just wanted to
see about enhancing the add_settings_section function.
As of now, individual sections are not wrapper in any sort of container,
which makes no sense to semantic sense to me. Sections should/need to be
styled differently, but as of now, you really don't have much control of
that.
I propose something similar to the register_sidebar function, looking like
this:
add_settings_section( $id, $title, $callback, $page, $args )
$args would accept 3 parameters: before_section, after_section, and
section_class.
This way you can style each individual section with relative ease. Just a
thought and enhancement to the Settings API.
Thomas
--
Ticket URL: <http://core.trac.wordpress.org/ticket/17851>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list