WordPress.org

Make WordPress Core

Ticket #24348: 24348.2.patch

File 24348.2.patch, 553 bytes (added by tollmanz, 7 years ago)
  • wp-includes/media.php

    diff --git a/wp-includes/media.php b/wp-includes/media.php
    index 269f3bb..e155fab 100644
    a b function get_the_post_format_image( $attached_size = 'full', &$post = null ) { 
    25682568                return $post->format_content[ $cache_key ];
    25692569        }
    25702570
     2571        $featured_image = get_the_post_thumbnail( $post->ID, $attached_size );
     2572        if ( ! empty( $featured_image ) ) {
     2573                $image = sprintf( $link_fmt, $featured_image );
     2574                $post->format_content[ $cache_key ] = $image;
     2575                return $image;
     2576        }
     2577
    25712578        return '';
    25722579}
    25732580