Make WordPress Core


Ignore:
Timestamp:
09/04/2013 05:43:29 PM (12 years ago)
Author:
nacin
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/theme.php

    r25193 r25235  
    12741274        case 'html5' :
    12751275            // You can't just pass 'html5', you need to pass an array of types.
    1276             if ( ! is_array( $args[0] ) )
     1276            if ( empty( $args[0] ) ) {
     1277                $args = array( 0 => array( 'comment-list', 'comment-form', 'search-form' ) );
     1278            } elseif ( ! is_array( $args[0] ) ) {
     1279                _doing_it_wrong( "add_theme_support( 'html5' )", 'You need to pass an array of types.', '3.6.1' );
    12771280                return false;
     1281            }
    12781282
    12791283            // Calling 'html5' again merges, rather than overwrites.
Note: See TracChangeset for help on using the changeset viewer.