Ticket #24453: 24453.patch
| File 24453.patch, 1.7 KB (added by , 12 years ago) |
|---|
-
wp-includes/post-formats.php
327 327 if ( empty( $format ) || in_array( $format, array( 'status', 'aside', 'chat', 'gallery' ) ) ) 328 328 return $content; 329 329 330 if ( current_theme_supports( ' structured-post-formats', $format ) )330 if ( current_theme_supports( 'post-formats', $format ) ) 331 331 return $content; 332 332 333 333 $defaults = array( -
wp-includes/theme.php
1259 1259 $args = array_slice( func_get_args(), 1 ); 1260 1260 1261 1261 switch ( $feature ) { 1262 case ' structured-post-formats' :1262 case 'post-formats' : 1263 1263 if ( is_array( $args[0] ) ) 1264 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() );1273 1265 break; 1274 1266 1275 1267 case 'custom-header-uploads' : … … 1555 1547 return in_array( $content_type, $_wp_theme_features[$feature][0] ); 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 1561 1552 // add_theme_support()