diff --git wp-includes/media.php wp-includes/media.php
index e74cd02..f9d3850 100644
--- wp-includes/media.php
+++ wp-includes/media.php
@@ -2371,8 +2371,14 @@ function get_the_post_format_image( $attached_size = 'full', &$post = null ) {
 		return $post->format_content;
 
 	$meta = get_post_format_meta( $post->ID );
+
+	$link_fmt = '';
+	if ( ! empty( $meta['url'] ) )
+		$link_fmt = '<a href="' . esc_url( $meta['url'] ) . '">%s</a>';
+
 	if ( ! empty( $meta['image'] ) ) {
-		$post->format_content = wp_get_attachment_image( $meta['image'], $attached_size );
+		$image = wp_get_attachment_image( $meta['image'], $attached_size );
+		$post->format_content = ! empty( $link_fmt ) ? sprintf( $link_fmt, $image ) : $image;
 		return $post->format_content;
 	}
 
@@ -2383,8 +2389,11 @@ function get_the_post_format_image( $attached_size = 'full', &$post = null ) {
 
 		$urls = array();
 		foreach ( $sizes as $size ) {
-			$urls[] = reset( wp_get_attachment_image_src( $media->ID, $size ) );
-			$urls[] = get_attachment_link( $media->ID );
+			$image = wp_get_attachment_image_src( $media->ID, $size );
+			if ( $image ) {
+				$urls[] = reset( $image );
+				$urls[] = get_attachment_link( $media->ID );
+			}
 		}
 
 		$count = 1;
@@ -2414,7 +2423,8 @@ function get_the_post_format_image( $attached_size = 'full', &$post = null ) {
 		}
 
 		$post->split_content = $content;
-		$post->format_content = wp_get_attachment_image( $media->ID, $attached_size );
+		$image = wp_get_attachment_image( $media->ID, $attached_size );
+		$post->format_content = ! empty( $link_fmt ) ? sprintf( $link_fmt, $image ) : $image;
 		return $post->format_content;
 	}
 
@@ -2423,7 +2433,7 @@ function get_the_post_format_image( $attached_size = 'full', &$post = null ) {
 	if ( ! empty( $htmls ) ) {
 		$html = reset( $htmls );
 		$post->split_content = $content;
-		$post->format_content = $html;
+		$post->format_content = ! empty( $link_fmt ) ? sprintf( $link_fmt, $html ) : $html;
 		return $post->format_content;
 	}
 }
