[wp-trac] [WordPress Trac] #37697: Strange behavior with thumbnails on preview in 4.6
WordPress Trac
noreply at wordpress.org
Mon Aug 29 12:24:11 UTC 2016
#37697: Strange behavior with thumbnails on preview in 4.6
-------------------------------------------------+-------------------------
Reporter: jbenton | Owner: joemcgill
Type: defect (bug) | Status: closed
Priority: high | Milestone: 4.6.1
Component: Post Thumbnails | Version: 4.6
Severity: normal | Resolution: fixed
Keywords: needs-testing has-patch has-unit- | Focuses:
tests commit |
-------------------------------------------------+-------------------------
Changes (by joemcgill):
* status: accepted => closed
* resolution: => fixed
Comment:
In [changeset:"38433"]:
{{{
#!CommitTicketReference repository="" revision="38433"
Post Thumbnails: Prevent post thumbnail previews from spilling into other
images.
After [38118], when previewing a page with a secondary loop, all post
thumbnails would be filtered to display the post thumbnail for the
page being previewed. This ensures `_wp_preview_post_thumbnail_filter()`
is only applied if the `$post_id` of the post meta being filtered is
equal to the post or page being previewed.
Props swisspidy, joemcgill.
Fixes #37697.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/37697#comment:14>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list