From 71b640dfa42c23af458022b18d2803982c57553c Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Wed, 4 Sep 2013 17:44:09 +0000 Subject: [PATCH] add_theme_support( 'html5' ) now defaults to comment-list, comment-form, and search-form. This was the implicit case in 3.6.0, modified in [25193]. see #24932. Built from https://develop.svn.wordpress.org/trunk@25235 git-svn-id: http://core.svn.wordpress.org/trunk@25205 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/theme.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/wp-includes/theme.php b/wp-includes/theme.php index 51ef24ada8..a16d8c5e14 100644 --- a/wp-includes/theme.php +++ b/wp-includes/theme.php @@ -1273,8 +1273,12 @@ function add_theme_support( $feature ) { case 'html5' : // You can't just pass 'html5', you need to pass an array of types. - if ( ! is_array( $args[0] ) ) + if ( empty( $args[0] ) ) { + $args = array( 0 => array( 'comment-list', 'comment-form', 'search-form' ) ); + } elseif ( ! is_array( $args[0] ) ) { + _doing_it_wrong( "add_theme_support( 'html5' )", 'You need to pass an array of types.', '3.6.1' ); return false; + } // Calling 'html5' again merges, rather than overwrites. if ( isset( $_wp_theme_features['html5'] ) )