Index: wp-includes/general-template.php =================================================================== --- wp-includes/general-template.php (revision 23621) +++ wp-includes/general-template.php (working copy) @@ -147,9 +147,10 @@ * * @since 2.7.0 * @param boolean $echo Default to echo and not return the form. + * @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. * @return string|null String when retrieving, null when displaying or if searchform.php exists. */ -function get_search_form($echo = true) { +function get_search_form( $echo = true, $format = 'xhtml' ) { do_action( 'get_search_form' ); $search_form_template = locate_template('searchform.php'); @@ -158,11 +159,15 @@ return; } - $form = '
'; if ( $echo )