[wp-trac] [WordPress Trac] #23945: get_the_post_format_image doesn't use specificed image size
WordPress Trac
noreply at wordpress.org
Thu Apr 4 22:44:58 UTC 2013
#23945: get_the_post_format_image doesn't use specificed image size
-----------------------------+--------------------------
Reporter: davidwilliamson | Type: defect (bug)
Status: new | Priority: normal
Milestone: Awaiting Review | Component: Post Formats
Version: trunk | Severity: normal
Keywords: |
-----------------------------+--------------------------
Since setup_postdata() runs when the_post() is called and it sets
$post->format_content using 'full' as the default image size there is no
way to use get_the_post_format_image() or the_post_format_image() to
specify a different size. get_the_post_format_image() returns
$post->format_content if it's already set rather than retrieving the
specified image size.
Attached patch removes the check for $post->format_content which allows
the image size to be specified later.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/23945>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list