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

git-svn-id: http://core.svn.wordpress.org/trunk@24118 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2013-04-28 06:36:39 +00:00
parent 130a30587e
commit d1966150dc
1 changed files with 1 additions and 1 deletions

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 ); $image = wp_get_attachment_image( absint( $meta['image'] ), $attached_size );
// wrap image in <a> // wrap image in <a>
if ( ! empty( $meta['url'] ) ) if ( ! empty( $meta['url'] ) )
$image = sprint( $link_fmt, $image ); $image = sprintf( $link_fmt, $image );
} elseif ( has_shortcode( $meta['image'], 'caption' ) ) { } elseif ( has_shortcode( $meta['image'], 'caption' ) ) {
// wrap <img> in <a> // wrap <img> in <a>
if ( ! empty( $meta['url'] ) && false === strpos( $meta['image'], '<a ' ) ) { if ( ! empty( $meta['url'] ) && false === strpos( $meta['image'], '<a ' ) ) {