mirror of
https://github.com/WordPress/WordPress.git
synced 2025-03-09 07:00:01 +00:00
Allow to switch get_search_form() to HTML5 with an add_theme_support() call. fixes #23850.
git-svn-id: http://core.svn.wordpress.org/trunk@24225 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
142f90c51b
commit
351fda2958
@ -155,7 +155,8 @@ function get_template_part( $slug, $name = null ) {
|
||||
function get_search_form( $echo = true ) {
|
||||
do_action( 'pre_get_search_form' );
|
||||
|
||||
$format = apply_filters( 'search_form_format', 'xhtml' );
|
||||
$format = ( current_theme_supports( 'html5-search-form' ) ) ? 'html5' : 'xhtml';
|
||||
$format = apply_filters( 'search_form_format', $format );
|
||||
|
||||
$search_form_template = locate_template( 'searchform.php' );
|
||||
if ( '' != $search_form_template ) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user