mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-21 14:05:11 +00:00
Allow the_post_format_image() to choose an image size late in the game.
props davidwilliamson, SergeyBiryukov. fixes #23945. git-svn-id: http://core.svn.wordpress.org/trunk@24079 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
cd0bbd830c
commit
d9d5c5eb03
@ -2412,7 +2412,7 @@ function get_the_post_format_image( $attached_size = 'full', &$post = null ) {
|
||||
if ( empty( $post ) )
|
||||
return '';
|
||||
|
||||
if ( isset( $post->format_content ) )
|
||||
if ( isset( $post->format_content ) && false !== strpos( $post->format_content, 'attachment-' . $attached_size ) )
|
||||
return $post->format_content;
|
||||
|
||||
$matched = false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user