Ticket #27278: 27278.4.diff
File 27278.4.diff, 791 bytes (added by , 11 years ago) |
---|
-
src/wp-includes/theme.php
1398 1398 case 'html5' : 1399 1399 // You can't just pass 'html5', you need to pass an array of types. 1400 1400 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 1402 1403 } elseif ( ! is_array( $args[0] ) ) { 1403 1404 _doing_it_wrong( "add_theme_support( 'html5' )", 'You need to pass an array of types.', '3.6.1' ); 1404 1405 return false;