#16231 closed enhancement (wontfix)
settings_fields and do_settings_sections should have an echo option
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 3.1 |
Component: | General | Keywords: | reporter-feedback |
Focuses: | Cc: |
Description
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.
Attachments (1)
Change History (5)
#1
@
14 years ago
Since this is a small amount of text and an obscure situation, wouldn't it be most easily done with output buffers?
#2
@
14 years ago
- Keywords reporter-feedback added; settings_fields do_settings_sections plugins settings removed
I'd tend to agree.
Note: See
TracTickets for help on using
tickets.
wp-admin/includes/plugin.php diff from revision 17297.