diff --git wp-includes/media.php wp-includes/media.php
index bd52867..81c3c4b 100644
|
|
function get_the_post_format_image( $attached_size = 'full', &$post = null ) { |
2416 | 2416 | else |
2417 | 2417 | $image = $meta['image']; |
2418 | 2418 | |
2419 | | $post->format_content = sprintf( $link_fmt, $image ); |
| 2419 | if ( false === strpos( $image, '<a ' ) ) |
| 2420 | $post->format_content = sprintf( $link_fmt, $image ); |
| 2421 | else |
| 2422 | $post->format_content = $image; |
2420 | 2423 | return $post->format_content; |
2421 | 2424 | } |
2422 | 2425 | |
… |
… |
function attachment_url_to_postid( $url ) { |
2508 | 2511 | } |
2509 | 2512 | |
2510 | 2513 | return 0; |
2511 | | } |
2512 | | No newline at end of file |
| 2514 | } |