[wp-trac] [WordPress Trac] #24188: Post Formats: get_the_post_format_image doesn't return the requested size
WordPress Trac
noreply at wordpress.org
Thu Apr 25 10:44:29 UTC 2013
#24188: Post Formats: get_the_post_format_image doesn't return the requested size
--------------------------+-------------------
Reporter: kovshenin | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 3.6
Component: Post Formats | Version: trunk
Severity: normal | Keywords:
--------------------------+-------------------
The new `get_the_post_format_image` function accepts an `$attached_size`
argument, but the value is ignored for the following cases:
* Image meta has a caption shortcode and image HTML
* Image meta is an image URL
* Image meta is an image HTML string
* Image meta is empty, but content contains image HTML
The only way this seems to work as expected is when the
`get_attached_images`-way and when the meta is numeric.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/24188>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list