[wp-trac] [WordPress Trac] #23253: Lack of a do_settings_section (singular) function
WordPress Trac
noreply at wordpress.org
Sat Feb 27 18:26:37 UTC 2021
#23253: Lack of a do_settings_section (singular) function
-------------------------+------------------------------
Reporter: auniquename | Owner: (none)
Type: enhancement | Status: reopened
Priority: normal | Milestone: Awaiting Review
Component: Plugins | Version:
Severity: normal | Resolution:
Keywords: has-patch | Focuses: administration
-------------------------+------------------------------
Changes (by gazchap):
* keywords: needs-patch => has-patch
Comment:
I came across this ticket earlier after searching for a
"do_setting_section" function.
I've attached a suggestion for a patch, adding a do_setting_section()
function, as well as a render_setting_section() function that is used by
it - and also by a refactored version of do_setting_sections() to avoid
code duplication.
render_settings_section() is not something I'd expect to be used outside
of these circumstances, and this being my first patch, I wasn't sure on
naming conventions for "private" functions.
Feedback appreciated!
--
Ticket URL: <https://core.trac.wordpress.org/ticket/23253#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list