WordPress.org

Make WordPress Core

Ticket #16063: 16063.4.diff

File 16063.4.diff, 585 bytes (added by Nacin, 4 years ago)
  • wp-includes/post.php

     
    52045204function _post_format_get_terms( $terms, $taxonomies, $args ) { 
    52055205        if ( in_array( 'post_format', (array) $taxonomies ) ) { 
    52065206                if ( isset( $args['fields'] ) && 'names' == $args['fields'] ) { 
    5207                         foreach( $terms as $order => $name ) { 
     5207                        foreach ( $terms as $order => $name ) { 
    52085208                                $terms[$order] = get_post_format_string( str_replace( 'post-format-', '', $name ) ); 
    52095209                        } 
    52105210                } else {