[wp-trac] [WordPress Trac] #54302: Add labels to read-only form fields

WordPress Trac noreply at wordpress.org
Wed Oct 20 17:47:24 UTC 2021


#54302: Add labels to read-only form fields
-------------------------+-------------------------------------------------
 Reporter:  sabernhardt  |       Owner:  (none)
     Type:  defect       |      Status:  new
  (bug)                  |
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  General      |     Version:
 Severity:  normal       |  Resolution:
 Keywords:  has-patch    |     Focuses:  accessibility, administration,
                         |  coding-standards
-------------------------+-------------------------------------------------
Changes (by sabernhardt):

 * keywords:   => has-patch


Comment:

 Most of these can have label tags, but I had console errors when adding a
 non-visual label for the toolbar shortlink input. So I used an ARIA label
 instead for that one.

 To view the toolbar shortlink, you need this in a plugin (or in class-wp-
 admin-bar.php):
 {{{
 add_action( 'admin_bar_menu', 'wp_admin_bar_shortlink_menu', 90 );
 }}}

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


More information about the wp-trac mailing list