Make WordPress Core

Changeset 25710


Ignore:
Timestamp:
10/07/2013 02:13:14 PM (11 years ago)
Author:
SergeyBiryukov
Message:

Escape title in HTML5 search form. props obenland, joostdevalk, scottsweb. fixes #25322.

File:
1 edited

Legend:

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

    r25675 r25710  
    173173                <label>
    174174                    <span class="screen-reader-text">' . _x( 'Search for:', 'label' ) . '</span>
    175                     <input type="search" class="search-field" placeholder="' . esc_attr_x( 'Search &hellip;', 'placeholder' ) . '" value="' . get_search_query() . '" name="s" title="' . _x( 'Search for:', 'label' ) . '" />
     175                    <input type="search" class="search-field" placeholder="' . esc_attr_x( 'Search &hellip;', 'placeholder' ) . '" value="' . get_search_query() . '" name="s" title="' . esc_attr_x( 'Search for:', 'label' ) . '" />
    176176                </label>
    177177                <input type="submit" class="search-submit" value="'. esc_attr_x( 'Search', 'submit button' ) .'" />
Note: See TracChangeset for help on using the changeset viewer.