Make WordPress Core


Ignore:
Timestamp:
06/27/2013 08:45:12 PM (11 years ago)
Author:
nacin
Message:

Improve the HTML classes for the new html5 format in get_search_form().

Update Twenty Thirteen to reflect the changes.

props obenland.
fixes #23850.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/general-template.php

    r24417 r24524  
    166166    } else {
    167167        if ( 'html5' == $format ) {
    168             $form = '<form role="search" method="get" class="searchform" action="' . esc_url( home_url( '/' ) ) . '">
    169                 <label><span class="screen-reader-text">' . _x( 'Search for:', 'label' ) . '</span>
    170                     <input type="search" placeholder="' . esc_attr_x( 'Search &hellip;', 'placeholder' ) . '" value="' . get_search_query() . '" name="s" title="' . _x( 'Search for:', 'label' ) . '" />
     168            $form = '<form role="search" method="get" class="search-form" action="' . esc_url( home_url( '/' ) ) . '">
     169                <label>
     170                    <span class="screen-reader-text">' . _x( 'Search for:', 'label' ) . '</span>
     171                    <input type="search" class="search-field" placeholder="' . esc_attr_x( 'Search &hellip;', 'placeholder' ) . '" value="' . get_search_query() . '" name="s" title="' . _x( 'Search for:', 'label' ) . '" />
    171172                </label>
    172                 <input type="submit" class="searchsubmit" value="'. esc_attr_x( 'Search', 'submit button' ) .'" />
     173                <input type="submit" class="search-submit" value="'. esc_attr_x( 'Search', 'submit button' ) .'" />
    173174            </form>';
    174175        } else {
Note: See TracChangeset for help on using the changeset viewer.