mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-07 22:24:36 +00:00
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. git-svn-id: https://develop.svn.wordpress.org/trunk@25235 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -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'] ) )
|
||||
|
||||
Reference in New Issue
Block a user