Make WordPress Core

Ticket #23964: 23964.1.diff

File 23964.1.diff, 598 bytes (added by obenland, 11 years ago)

Let image urls be obtainable through get_the_post_format_url()

  • wp-includes/post-formats.php

     
    678678        if ( empty( $post ) )
    679679                return '';
    680680
    681         if ( in_array( get_post_format( $post->ID ), array( 'link', 'quote' ) ) ) {
     681        if ( in_array( get_post_format( $post->ID ), array( 'image', 'link', 'quote' ) ) ) {
    682682                $meta = get_post_format_meta( $post->ID );
    683683                if ( ! empty( $meta['url'] ) )
    684684                        return apply_filters( 'get_the_post_format_url', esc_url_raw( $meta['url'] ), $post );