Changeset 25193 for trunk/src/wp-includes/theme.php
- Timestamp:
- 08/31/2013 01:29:08 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/theme.php
r25025 r25193 1272 1272 break; 1273 1273 1274 case 'html5' : 1275 // You can't just pass 'html5', you need to pass an array of types. 1276 if ( ! is_array( $args[0] ) ) 1277 return false; 1278 1279 // Calling 'html5' again merges, rather than overwrites. 1280 if ( isset( $_wp_theme_features['html5'] ) ) 1281 $args[0] = array_merge( $_wp_theme_features['html5'][0], $args[0] ); 1282 break; 1283 1274 1284 case 'custom-header-uploads' : 1275 1285 return add_theme_support( 'custom-header', array( 'uploads' => true ) ); … … 1555 1565 break; 1556 1566 1567 case 'html5': 1557 1568 case 'post-formats': 1558 1569 // specific post formats can be registered by passing an array of types to 1559 1570 // add_theme_support() 1560 $post_format = $args[0]; 1561 return in_array( $post_format, $_wp_theme_features[$feature][0] ); 1571 1572 // Specific areas of HTML5 support *must* be passed via an array to add_theme_support() 1573 1574 $type = $args[0]; 1575 return in_array( $type, $_wp_theme_features[$feature][0] ); 1562 1576 break; 1563 1577
Note: See TracChangeset
for help on using the changeset viewer.