diff --git a/wp-includes/media.php b/wp-includes/media.php index 35b2184e3c..2231797765 100644 --- a/wp-includes/media.php +++ b/wp-includes/media.php @@ -2414,16 +2414,18 @@ function get_the_post_format_image( $attached_size = 'full', &$post = null ) { if ( ! empty( $medias ) ) { $media = reset( $medias ); $sizes = get_intermediate_image_sizes(); + $sizes[] = 'full'; // Add original image source. $urls = array(); foreach ( $sizes as $size ) { $image = wp_get_attachment_image_src( $media->ID, $size ); - if ( $image ) { + if ( $image ) $urls[] = reset( $image ); - $urls[] = get_attachment_link( $media->ID ); - } } + // Add media permalink. + $urls[] = get_attachment_link( $media->ID ); + $count = 1; $matches = array(); $content = $post->post_content;