Changeset 24386
- Timestamp:
- 05/30/2013 05:55:14 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/theme.php
r24147 r24386 1260 1260 1261 1261 switch ( $feature ) { 1262 case ' structured-post-formats' :1262 case 'post-formats' : 1263 1263 if ( is_array( $args[0] ) ) 1264 $args[0] = array_intersect( $args[0], get_post_format_slugs() ); 1265 // structured-post-formats support automatically adds support for post-formats. 1266 $_wp_theme_features['post-formats'] = $args; 1267 case 'post-formats' : 1268 // An existing structured-post-formats support declaration overrides post-formats. 1269 if ( current_theme_supports( 'structured-post-formats' ) ) 1270 $args = get_theme_support( 'structured-post-formats' ); 1271 elseif ( is_array( $args[0] ) ) 1272 $args[0] = array_intersect( $args[0], get_post_format_slugs() ); 1264 $args[0] = array_intersect( $args[0], array_keys( get_post_format_slugs() ) ); 1273 1265 break; 1274 1266 … … 1556 1548 break; 1557 1549 1558 case 'structured-post-formats':1559 1550 case 'post-formats': 1560 1551 // specific post formats can be registered by passing an array of types to
Note: See TracChangeset
for help on using the changeset viewer.