From 7bb95a77efe77fddaf4121f8be3bc1caac31be7e Mon Sep 17 00:00:00 2001 From: Lance Willett Date: Thu, 6 Jun 2013 17:20:40 +0000 Subject: [PATCH] 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 --- wp-content/themes/twentythirteen/functions.php | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/wp-content/themes/twentythirteen/functions.php b/wp-content/themes/twentythirteen/functions.php index 7358166aa7..021cd747b9 100644 --- a/wp-content/themes/twentythirteen/functions.php +++ b/wp-content/themes/twentythirteen/functions.php @@ -77,6 +77,9 @@ function twentythirteen_setup() { // Adds RSS feed links to 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. *