Make WordPress Core

Ticket #27278: 27278.7.diff

File 27278.7.diff, 974 bytes (added by jond3r, 11 years ago)

A modified minimal patch.

  • src/wp-includes/theme.php

     
    13801380 * The init hook may be too late for some features.
    13811381 *
    13821382 * @since 2.9.0
    1383  * @param string $feature the feature being added
     1383 * @param string $feature The feature being added.
     1384 * @return void|bool False on failure, otherwise no return value.
    13841385 */
    13851386function add_theme_support( $feature ) {
    13861387        global $_wp_theme_features;
     
    13991400                case 'html5' :
    14001401                        // You can't just pass 'html5', you need to pass an array of types.
    14011402                        if ( empty( $args[0] ) ) {
     1403                                // This is deprecated usage, only here for back compat
    14021404                                $args = array( 0 => array( 'comment-list', 'comment-form', 'search-form' ) );
    14031405                        } elseif ( ! is_array( $args[0] ) ) {
    14041406                                _doing_it_wrong( "add_theme_support( 'html5' )", 'You need to pass an array of types.', '3.6.1' );