Make WordPress Core

Ticket #27278: 27278.4.diff

File 27278.4.diff, 791 bytes (added by SergeyBiryukov, 11 years ago)
  • src/wp-includes/theme.php

     
    13981398                case 'html5' :
    13991399                        // You can't just pass 'html5', you need to pass an array of types.
    14001400                        if ( empty( $args[0] ) ) {
    1401                                 $args = array( 0 => array( 'comment-list', 'comment-form', 'search-form' ) );
     1401                                _doing_it_wrong( "add_theme_support( 'html5' )", 'You need to pass an array of types.', '3.6.1' );
     1402                                $args = array( 0 => array( 'comment-list', 'comment-form', 'search-form' ) ); // Back compat
    14021403                        } elseif ( ! is_array( $args[0] ) ) {
    14031404                                _doing_it_wrong( "add_theme_support( 'html5' )", 'You need to pass an array of types.', '3.6.1' );
    14041405                                return false;