[wp-trac] [WordPress Trac] #21488: Add Default Callback Functions for add_settings_field()
WordPress Trac
wp-trac at lists.automattic.com
Mon Aug 6 17:05:08 UTC 2012
#21488: Add Default Callback Functions for add_settings_field()
-------------------------+------------------------------
Reporter: mordauk | Owner:
Type: enhancement | Status: reopened
Priority: normal | Milestone: Awaiting Review
Component: General | Version:
Severity: normal | Resolution:
Keywords: has-patch |
-------------------------+------------------------------
Comment (by mordauk):
Replying to [comment:13 sc0ttkclark]:
> Replying to [comment:10 boonebgorges]:
> > A big +1.
> >
> > In fact, I suggest that these be moved out of wp-admin and into wp-
includes, so that front-end plugin and theme developers could use the same
methods for building form markup. There's nothing settings-specific about
them as they're currently written.
>
> Oh this is gold.
Completely agree. Perhaps instead of `do_settings_text()`, the functions
should just be `text_field()`, `select_field()`, etc. This would match the
pattern already used for the `submit_button()` function.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/21488#comment:14>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list