Make WordPress Core


Ignore:
Timestamp:
04/14/2013 04:59:52 PM (12 years ago)
Author:
markjaquith
Message:

Link post format images if a URL is provided. Make the URL available via get_the_post_format_url().

props wonderboymusic, obenland. fixes #23964.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/post-formats.php

    r23978 r23992  
    708708        return '';
    709709
    710     if ( in_array( get_post_format( $post->ID ), array( 'link', 'quote' ) ) ) {
     710    if ( in_array( get_post_format( $post->ID ), array( 'image', 'link', 'quote' ) ) ) {
    711711        $meta = get_post_format_meta( $post->ID );
    712712        if ( ! empty( $meta['url'] ) )
Note: See TracChangeset for help on using the changeset viewer.