WordPress.org

Make WordPress Core

Changeset 24225


Ignore:
Timestamp:
05/09/13 22:41:30 (12 months ago)
Author:
SergeyBiryukov
Message:

Allow to switch get_search_form() to HTML5 with an add_theme_support() call. fixes #23850.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/general-template.php

    r24189 r24225  
    156156    do_action( 'pre_get_search_form' ); 
    157157 
    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 ); 
    159160 
    160161    $search_form_template = locate_template( 'searchform.php' ); 
Note: See TracChangeset for help on using the changeset viewer.