[wp-trac] [WordPress Trac] #17626: image_get_intermediate_size() may return wrong thumbnail size
WordPress Trac
noreply at wordpress.org
Wed Apr 16 09:35:52 UTC 2014
#17626: image_get_intermediate_size() may return wrong thumbnail size
-------------------------------------+-----------------------------
Reporter: chipbennett | Owner: markoheijnen
Type: defect (bug) | Status: assigned
Priority: normal | Milestone: Future Release
Component: Media | Version:
Severity: normal | Resolution:
Keywords: has-patch needs-testing | Focuses:
-------------------------------------+-----------------------------
Comment (by fliespl):
This bug occurs when you switch from template A which is setting
set_post_thumbnail_size to size X and to template B which is using other
value for set_post_thumbnail_size(); (post-thumbnail)
image_get_intermediate_size then returns wrong value because data in
wp_get_attachment_metadata is not being refreshed on template change -
will return size X.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/17626#comment:23>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list