WordPress.org

Make WordPress Core

Changeset 24386


Ignore:
Timestamp:
05/30/2013 05:55:14 PM (7 years ago)
Author:
markjaquith
Message:

Revert [23467]. Removes structured-post-format theme support.

see #23347, #24452. closes #24453.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/theme.php

    r24147 r24386  
    12601260
    12611261    switch ( $feature ) {
    1262         case 'structured-post-formats' :
     1262        case 'post-formats' :
    12631263            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() ) );
    12731265            break;
    12741266
     
    15561548            break;
    15571549
    1558         case 'structured-post-formats':
    15591550        case 'post-formats':
    15601551            // specific post formats can be registered by passing an array of types to
Note: See TracChangeset for help on using the changeset viewer.