Ticket #27278: 27278.6.diff
File 27278.6.diff, 1.0 KB (added by , 11 years ago) |
---|
-
src/wp-includes/theme.php
1379 1379 * The init hook may be too late for some features. 1380 1380 * 1381 1381 * @since 2.9.0 1382 * @param string $feature the feature being added 1382 * @param string $feature The feature being added. 1383 * @return mixed False if $feature is 'html5' and not passing an array as 2nd argument (empty 2nd arg is deprecated usage). 1383 1384 */ 1384 1385 function add_theme_support( $feature ) { 1385 1386 global $_wp_theme_features; … … 1398 1399 case 'html5' : 1399 1400 // You can't just pass 'html5', you need to pass an array of types. 1400 1401 if ( empty( $args[0] ) ) { 1402 // This is deprecated usage, only here for back compat 1401 1403 $args = array( 0 => array( 'comment-list', 'comment-form', 'search-form' ) ); 1402 1404 } elseif ( ! is_array( $args[0] ) ) { 1403 1405 _doing_it_wrong( "add_theme_support( 'html5' )", 'You need to pass an array of types.', '3.6.1' );