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