git-svn-id: http://core.svn.wordpress.org/trunk@24118 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
130a30587e
commit
d1966150dc
|
@ -2450,7 +2450,7 @@ function get_the_post_format_image( $attached_size = 'full', &$post = null ) {
|
|||
$image = wp_get_attachment_image( absint( $meta['image'] ), $attached_size );
|
||||
// wrap image in <a>
|
||||
if ( ! empty( $meta['url'] ) )
|
||||
$image = sprint( $link_fmt, $image );
|
||||
$image = sprintf( $link_fmt, $image );
|
||||
} elseif ( has_shortcode( $meta['image'], 'caption' ) ) {
|
||||
// wrap <img> in <a>
|
||||
if ( ! empty( $meta['url'] ) && false === strpos( $meta['image'], '<a ' ) ) {
|
||||
|
|
Loading…
Reference in New Issue