Ticket #27278: 27278.8.diff
File 27278.8.diff, 974 bytes (added by , 11 years ago) |
---|
-
src/wp-includes/theme.php
1384 1384 * The init hook may be too late for some features. 1385 1385 * 1386 1386 * @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. 1388 1389 */ 1389 1390 function add_theme_support( $feature ) { 1390 1391 global $_wp_theme_features; … … 1403 1404 case 'html5' : 1404 1405 // You can't just pass 'html5', you need to pass an array of types. 1405 1406 if ( empty( $args[0] ) ) { 1407 // This is deprecated usage, only here for back compat 1406 1408 $args = array( 0 => array( 'comment-list', 'comment-form', 'search-form' ) ); 1407 1409 } elseif ( ! is_array( $args[0] ) ) { 1408 1410 _doing_it_wrong( "add_theme_support( 'html5' )", 'You need to pass an array of types.', '3.6.1' );