Ticket #23850: general-template.php.patch
File general-template.php.patch, 896 bytes (added by , 12 years ago) |
---|
-
wp-includes/general-template.php
147 147 * 148 148 * @since 2.7.0 149 149 * @param boolean $echo Default to echo and not return the form. 150 * @param string $format Which type to use for the search field. If set to 'html5' it changes to search input type and adds placeholder text.151 150 * @return string|null String when retrieving, null when displaying or if searchform.php exists. 152 151 */ 153 function get_search_form( $echo = true , $format = 'xhtml') {152 function get_search_form( $echo = true ) { 154 153 do_action( 'get_search_form' ); 155 154 155 $format = apply_filters( 'search_form_format', 'xhtml' ); 156 156 157 $search_form_template = locate_template( 'searchform.php' ); 157 158 if ( '' != $search_form_template ) { 158 159 ob_start();