Ticket #32528: hook_search_form_content.diff
File hook_search_form_content.diff, 1.5 KB (added by , 10 years ago) |
---|
-
src/wp-includes/general-template.php
227 227 <label> 228 228 <span class="screen-reader-text">' . _x( 'Search for:', 'label' ) . '</span> 229 229 <input type="search" class="search-field" placeholder="' . esc_attr_x( 'Search …', 'placeholder' ) . '" value="' . get_search_query() . '" name="s" title="' . esc_attr_x( 'Search for:', 'label' ) . '" /> 230 </label> 231 <input type="submit" class="search-submit" value="'. esc_attr_x( 'Search', 'submit button' ) .'" /> 230 </label>'. 231 apply_filters( 'search_form_content', '' ) . 232 '<input type="submit" class="search-submit" value="'. esc_attr_x( 'Search', 'submit button' ) .'" /> 232 233 </form>'; 233 234 } else { 234 235 $form = '<form role="search" method="get" id="searchform" class="searchform" action="' . esc_url( home_url( '/' ) ) . '"> 235 236 <div> 236 237 <label class="screen-reader-text" for="s">' . _x( 'Search for:', 'label' ) . '</label> 237 <input type="text" value="' . get_search_query() . '" name="s" id="s" /> 238 <input type="submit" id="searchsubmit" value="'. esc_attr_x( 'Search', 'submit button' ) .'" /> 238 <input type="text" value="' . get_search_query() . '" name="s" id="s" />' . 239 apply_filters( 'search_form_content', '' ) . 240 '<input type="submit" id="searchsubmit" value="'. esc_attr_x( 'Search', 'submit button' ) .'" /> 239 241 </div> 240 242 </form>'; 241 243 }