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: http://core.svn.wordpress.org/trunk@24421 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Lance Willett 2013-06-06 17:20:40 +00:00
parent fb16cb6b39
commit 7bb95a77ef
1 changed files with 3 additions and 11 deletions

View File

@ -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.
*