Fix typo in get_the_post_format_image(). props rlerdorf. see #23964. see #24210.

git-svn-id: https://develop.svn.wordpress.org/trunk@24118 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov
2013-04-28 06:36:39 +00:00
parent 903b602bcf
commit 57b9f9ecab

View File

@@ -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 ' ) ) {