Changeset 23467
- Timestamp:
- 02/21/2013 10:48:09 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/theme.php
r23367 r23467 1258 1258 1259 1259 switch ( $feature ) { 1260 case 'structured-post-formats' : 1261 if ( is_array( $args[0] ) ) 1262 $args[0] = array_intersect( $args[0], array_keys( get_post_format_slugs() ) ); 1263 // structured-post-formats support automatically adds support for post-formats. 1264 $_wp_theme_features['post-formats'] = $args; 1260 1265 case 'post-formats' : 1261 if ( is_array( $args[0] ) ) 1266 // An existing structured-post-formats support declaration overrides post-formats. 1267 if ( current_theme_supports( 'structured-post-formats' ) ) 1268 $args = get_theme_support( 'structured-post-formats' ); 1269 elseif ( is_array( $args[0] ) ) 1262 1270 $args[0] = array_intersect( $args[0], array_keys( get_post_format_slugs() ) ); 1263 1271 break; … … 1546 1554 break; 1547 1555 1556 case 'structured-post-formats': 1548 1557 case 'post-formats': 1549 1558 // specific post formats can be registered by passing an array of types to
Note: See TracChangeset
for help on using the changeset viewer.