[wp-trac] [WordPress Trac] #39441: Improve the Settings API for accessibility and ease of use.

WordPress Trac noreply at wordpress.org
Mon Feb 27 18:38:59 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.5.diff] is an updated patch which changes the following
 over the previous one:

 * For a single checkbox, the `$title` is used as the checkbox label. A new
 `skip_title` argument is used to tell `do_settings_fields()` to not print
 the title in there.
 * This new `skip_title` argument is generally used instead of simply
 checking if the title is empty. This might be a good idea for our ongoing
 discussion with requiring the title. At least in the code itself it now
 appears to be required, and one needs to explicitly set `skip_title` to
 set it as not required. This allows us to actually throw a notice if the
 `$title` is empty, and at the same time allow devs to bypass printing it
 if they really do not want that.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/39441#comment:20>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list