diff --git a/wp-includes/media.php b/wp-includes/media.php
index d4a0df3..7644710 100644
a
|
b
|
function get_post_gallery_images( $post_id = 0 ) { |
2420 | 2420 | * |
2421 | 2421 | * @param string $attached_size If an attached image is found, the size to display it. |
2422 | 2422 | * @param WP_Post $post Optional. Used instead of global $post when passed. |
| 2423 | * |
| 2424 | * @return string HTML for the image. Blank string if no image is found. |
2423 | 2425 | */ |
2424 | 2426 | function get_the_post_format_image( $attached_size = 'full', &$post = null ) { |
2425 | 2427 | if ( empty( $post ) ) |
… |
… |
function get_the_post_format_image( $attached_size = 'full', &$post = null ) { |
2566 | 2568 | $post->format_content[ $cache_key ] = sprintf( $link_fmt, $html ); |
2567 | 2569 | return $post->format_content[ $cache_key ]; |
2568 | 2570 | } |
| 2571 | |
| 2572 | $featured_image = get_the_post_thumbnail( $post->ID, $attached_size ); |
| 2573 | if ( ! empty( $featured_image ) ) { |
| 2574 | $image = sprintf( $link_fmt, $featured_image ); |
| 2575 | $post->format_content[ $cache_key ] = $image; |
| 2576 | return $image; |
| 2577 | } |
| 2578 | |
| 2579 | return ''; |
2569 | 2580 | } |
2570 | 2581 | |
2571 | 2582 | /** |