diff --git wp-admin/js/post-formats.js wp-admin/js/post-formats.js
index 4c9e0ec..00ca966 100644
|
|
|
window.wp = window.wp || {}; |
| 151 | 151 | // show one preview at a time |
| 152 | 152 | mediaPreview(attachment); |
| 153 | 153 | } else { |
| 154 | | html = wp.media.string.image({}, attachment); |
| | 154 | html = wp.media.string.image({size: 'full'}, attachment); |
| 155 | 155 | // set the hidden input's value |
| 156 | 156 | $field.val(html); |
| 157 | 157 | $('#image-preview').remove(); |
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 | } |