mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-03-31 18:54:29 +00:00
Bring out the shears.
git-svn-id: https://develop.svn.wordpress.org/trunk@17228 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1754,7 +1754,7 @@ function add_theme_support( $feature ) {
|
||||
$_wp_theme_features[$feature] = true;
|
||||
else
|
||||
$_wp_theme_features[$feature] = array_slice( func_get_args(), 1 );
|
||||
|
||||
|
||||
if ( $feature == 'post-formats' && is_array( $_wp_theme_features[$feature][0] ) )
|
||||
$_wp_theme_features[$feature][0] = array_intersect( $_wp_theme_features[$feature][0], array_keys( get_post_format_slugs() ) );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user