WordPress.org

Make WordPress Core


Ignore:
Timestamp:
04/25/2013 03:06:31 AM (9 years ago)
Author:
markjaquith
Message:

Fix redundant use of array_keys() around get_post_format_slugs().

props SergeyBirkukov, wonderboymusic. fixes #24089.

File:
1 edited

Legend:

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

    r23873 r24082  
    12621262        case 'structured-post-formats' :
    12631263            if ( is_array( $args[0] ) )
    1264                 $args[0] = array_intersect( $args[0], array_keys( get_post_format_slugs() ) );
     1264                $args[0] = array_intersect( $args[0], get_post_format_slugs() );
    12651265            // structured-post-formats support automatically adds support for post-formats.
    12661266            $_wp_theme_features['post-formats'] = $args;
     
    12701270                $args = get_theme_support( 'structured-post-formats' );
    12711271            elseif ( is_array( $args[0] ) )
    1272                 $args[0] = array_intersect( $args[0], array_keys( get_post_format_slugs() ) );
     1272                $args[0] = array_intersect( $args[0], get_post_format_slugs() );
    12731273            break;
    12741274
Note: See TracChangeset for help on using the changeset viewer.