Twenty Thirteen: Remove `twentythirteen_search_form_format()` filter in favor of `add_theme_support()` call for search form, comment form, and comment list markup. Props SergeyBiryukov, fixes #24269; see #23850.
git-svn-id: https://develop.svn.wordpress.org/trunk@24421 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
cd69621b0a
commit
e3f3f1309d
|
@ -77,6 +77,9 @@ function twentythirteen_setup() {
|
|||
// Adds RSS feed links to <head> for posts and comments.
|
||||
add_theme_support( 'automatic-feed-links' );
|
||||
|
||||
// Switches default core markup for search form to output valid HTML5.
|
||||
add_theme_support( 'html5', array( 'search-form', 'comment-form', 'comment-list' ) );
|
||||
|
||||
/*
|
||||
* This theme supports all available post formats by default.
|
||||
* See http://codex.wordpress.org/Post_Formats
|
||||
|
@ -552,17 +555,6 @@ function twentythirteen_content_width() {
|
|||
}
|
||||
add_action( 'template_redirect', 'twentythirteen_content_width' );
|
||||
|
||||
/**
|
||||
* Switches default core markup for search form to output valid HTML5.
|
||||
*
|
||||
* @param string $format Expected markup format, default is `xhtml`
|
||||
* @return string Twenty Thirteen loves HTML5.
|
||||
*/
|
||||
function twentythirteen_search_form_format( $format ) {
|
||||
return 'html5';
|
||||
}
|
||||
add_filter( 'search_form_format', 'twentythirteen_search_form_format' );
|
||||
|
||||
/**
|
||||
* Add postMessage support for site title and description for the Customizer.
|
||||
*
|
||||
|
|
Loading…
Reference in New Issue