[wp-trac] [WordPress Trac] #16231: settings_fields and do_settings_sections should have an echo option
WordPress Trac
wp-trac at lists.automattic.com
Fri Jan 14 14:22:19 UTC 2011
#16231: settings_fields and do_settings_sections should have an echo option
-------------------------+-------------------------------------------------
Reporter: AshKyd | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 3.1
Severity: normal | Keywords: settings_fields,
| do_settings_sections, plugins, settings
-------------------------+-------------------------------------------------
Neither settings_fields() and do_settings_sections() have the option to
supress echoing content to the page. This means the output can't be
adjusted, and the functions can't easily be used in higher level
situations such as within an actual templating language or in an AJAX
call.
I had a peek at the code, and adding a $echo parameter to settings_fields
seems quite straightforward, but retaining backward compatibility in
do_settings_sections could be difficult.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/16231>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list