[wp-trac] [WordPress Trac] #39441: Improve the Settings API for accessibility and ease of use.
WordPress Trac
noreply at wordpress.org
Mon Feb 27 08:40:51 UTC 2017
#39441: Improve the Settings API for accessibility and ease of use.
-------------------------------------+-------------------------------------
Reporter: flixos90 | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Future Release
Component: Plugins | Version:
Severity: normal | Resolution:
Keywords: settings-api has-patch | Focuses: accessibility,
2nd-opinion | administration
-------------------------------------+-------------------------------------
Comment (by flixos90):
[attachment:39441.4.diff] makes the above improvements:
* Do not output a `<label>` without a `for` attribute.
* Support a `label_class` argument. This class is applied to the visible
element that outputs the field's `$title`.
* Fix a bug with `before` and `after`: Previously a callback string would
be printed out instead of calling the callback.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/39441#comment:14>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list