diff --git a/wp-admin/includes/post-formats.php b/wp-admin/includes/post-formats.php index 2db8b18699..630444689d 100644 --- a/wp-admin/includes/post-formats.php +++ b/wp-admin/includes/post-formats.php @@ -26,9 +26,8 @@ $format_meta = get_post_format_meta( $post_ID );
', esc_url( $image ), get_the_title( $format_meta['image'] ) ); + $image = wp_get_attachment_url( $value ); + printf( '%s', esc_url( $image ), get_the_title( $value ) ); } elseif ( preg_match( '/' . get_shortcode_regex() . '/s', $value ) ) { echo do_shortcode( $value ); } elseif ( ! preg_match( '#<[^>]+>#', $value ) ) { @@ -77,8 +76,8 @@ $format_meta = get_post_format_meta( $post_ID );
]+>#', $value ) ) { @@ -115,8 +114,8 @@ $format_meta = get_post_format_meta( $post_ID );
]+>#', $value ) ) {