WordPress.org

Make WordPress Core

Ticket #27278: 27278.8.diff

File 27278.8.diff, 974 bytes (added by jond3r, 6 years ago)

Just a refresh

  • src/wp-includes/theme.php

     
    13841384 * The init hook may be too late for some features.
    13851385 *
    13861386 * @since 2.9.0
    1387  * @param string $feature the feature being added
     1387 * @param string $feature The feature being added.
     1388 * @return void|bool False on failure, otherwise no return value.
    13881389 */
    13891390function add_theme_support( $feature ) {
    13901391        global $_wp_theme_features;
     
    14031404                case 'html5' :
    14041405                        // You can't just pass 'html5', you need to pass an array of types.
    14051406                        if ( empty( $args[0] ) ) {
     1407                                // This is deprecated usage, only here for back compat
    14061408                                $args = array( 0 => array( 'comment-list', 'comment-form', 'search-form' ) );
    14071409                        } elseif ( ! is_array( $args[0] ) ) {
    14081410                                _doing_it_wrong( "add_theme_support( 'html5' )", 'You need to pass an array of types.', '3.6.1' );