mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
Allow the_post_format_image() to choose an image size late in the game.
props davidwilliamson, SergeyBiryukov. fixes #23945. git-svn-id: https://develop.svn.wordpress.org/trunk@24079 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
25a32a446c
commit
53de215895
@ -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…
Reference in New Issue
Block a user