Ticket #23850: 23850.2.diff
File 23850.2.diff, 630 bytes (added by , 12 years ago) |
---|
-
wp-includes/general-template.php
155 155 function get_search_form( $echo = true ) { 156 156 do_action( 'pre_get_search_form' ); 157 157 158 $format = apply_filters( 'search_form_format', 'xhtml' ); 158 $format = ( current_theme_supports( 'html5-search-form' ) ) ? 'html5' : 'xhtml'; 159 $format = apply_filters( 'search_form_format', $format ); 159 160 160 161 $search_form_template = locate_template( 'searchform.php' ); 161 162 if ( '' != $search_form_template ) {