Fix mangled image output in compat function.
props wonderboymusic. see #24175. git-svn-id: http://core.svn.wordpress.org/trunk@24078 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -2428,7 +2428,7 @@ function get_the_post_format_image( $attached_size = 'full', &$post = null ) {
|
||||
// wrap image in <a>
|
||||
if ( ! empty( $meta['url'] ) )
|
||||
$image = sprint( $link_fmt, $image );
|
||||
} elseif ( has_shortcode( $meta['image'], 'gallery' ) ) {
|
||||
} elseif ( has_shortcode( $meta['image'], 'caption' ) ) {
|
||||
// wrap <img> in <a>
|
||||
if ( ! empty( $meta['url'] ) && false === strpos( $meta['image'], '<a ' ) ) {
|
||||
$meta['image'] = preg_replace(
|
||||
|
||||
Reference in New Issue
Block a user