Ticket #23850: 23850.4.diff
File 23850.4.diff, 876 bytes (added by , 12 years ago) |
---|
-
wp-includes/theme.php
1264 1264 $args[0] = array_intersect( $args[0], array_keys( get_post_format_slugs() ) ); 1265 1265 break; 1266 1266 1267 case 'html5' : 1268 // 'html5' must take a second argument of what should be html5 1269 if ( 1 === func_num_args() ) { 1270 trigger_error( "add_theme_support( 'html5', \$what ) requires a second argument.", E_USER_WARNING ); 1271 return false; 1272 } 1273 1274 // Calling 'html5' again merges, rather than replaces. 1275 if ( isset( $_wp_theme_features['html5'][0] ) ) 1276 $args[0] = array_merge( $_wp_theme_features['html5']['0'], $args[0] ); 1277 1278 break; 1267 1279 case 'custom-header-uploads' : 1268 1280 return add_theme_support( 'custom-header', array( 'uploads' => true ) ); 1269 1281 break;