WordPress.org

Make WordPress Core

Changeset 17213


Ignore:
Timestamp:
01/03/2011 11:56:42 PM (11 years ago)
Author:
ryan
Message:

Ignore unsupported post types in add_theme_support(). Props garyc40. fixes #16073

File:
1 edited

Legend:

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

    r17123 r17213  
    17551755    else
    17561756        $_wp_theme_features[$feature] = array_slice( func_get_args(), 1 );
     1757       
     1758    if ( $feature == 'post-formats' && is_array( $_wp_theme_features[$feature][0] ) )
     1759        $_wp_theme_features[$feature][0] = array_intersect( $_wp_theme_features[$feature][0], array_keys( get_post_format_slugs() ) );
    17571760}
    17581761
Note: See TracChangeset for help on using the changeset viewer.