mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
Fix redundant use of array_keys() around get_post_format_slugs().
props SergeyBirkukov, wonderboymusic. fixes #24089. git-svn-id: https://develop.svn.wordpress.org/trunk@24082 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1261,7 +1261,7 @@ function add_theme_support( $feature ) {
|
||||
switch ( $feature ) {
|
||||
case 'structured-post-formats' :
|
||||
if ( is_array( $args[0] ) )
|
||||
$args[0] = array_intersect( $args[0], array_keys( get_post_format_slugs() ) );
|
||||
$args[0] = array_intersect( $args[0], get_post_format_slugs() );
|
||||
// structured-post-formats support automatically adds support for post-formats.
|
||||
$_wp_theme_features['post-formats'] = $args;
|
||||
case 'post-formats' :
|
||||
@@ -1269,7 +1269,7 @@ function add_theme_support( $feature ) {
|
||||
if ( current_theme_supports( 'structured-post-formats' ) )
|
||||
$args = get_theme_support( 'structured-post-formats' );
|
||||
elseif ( is_array( $args[0] ) )
|
||||
$args[0] = array_intersect( $args[0], array_keys( get_post_format_slugs() ) );
|
||||
$args[0] = array_intersect( $args[0], get_post_format_slugs() );
|
||||
break;
|
||||
|
||||
case 'custom-header-uploads' :
|
||||
|
||||
Reference in New Issue
Block a user