WordPress.org

Make WordPress Core

Changeset 31455


Ignore:
Timestamp:
02/13/2015 07:20:53 PM (7 years ago)
Author:
SergeyBiryukov
Message:

Toolbar: Add a label for search field on front-end.

props afercia.
fixes #31323.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/admin-bar.php

    r31448 r31455  
    796796    $form  = '<form action="' . esc_url( home_url( '/' ) ) . '" method="get" id="adminbarsearch">';
    797797    $form .= '<input class="adminbar-input" name="s" id="adminbar-search" type="text" value="" maxlength="150" />';
     798    $form .= '<label for="adminbar-search" class="screen-reader-text">' . __( 'Search' ) . '</label>';
    798799    $form .= '<input type="submit" class="adminbar-button" value="' . __('Search') . '"/>';
    799800    $form .= '</form>';
Note: See TracChangeset for help on using the changeset viewer.