[wp-trac] [WordPress Trac] #37697: Strange behavior with thumbnails on preview in 4.6

WordPress Trac noreply at wordpress.org
Wed Aug 17 20:18:12 UTC 2016


#37697: Strange behavior with thumbnails on preview in 4.6
-----------------------------+------------------------------
 Reporter:  jbenton          |       Owner:
     Type:  defect (bug)     |      Status:  new
 Priority:  normal           |   Milestone:  Awaiting Review
Component:  Post Thumbnails  |     Version:  4.6
 Severity:  normal           |  Resolution:
 Keywords:                   |     Focuses:
-----------------------------+------------------------------
Description changed by swissspidy:

Old description:

> Since upgrading my site to 4.6, we've had strange behavior regarding
> featured images on preview. Whenever a preview_nonce appears in a preview
> URL, an additional &_thumbnail_id=xxxxxxx appears. And at that point, all
> featured-image thumbnails on the page become that specific image — even
> when they appear in a different loop or are called through other means.
> @swissspidy says on Twitter this may be related to this change in 4.6:
>
> https://core.trac.wordpress.org/changeset/38118
>
> Adding a wp_reset_postdata() does not seem to fix the problem.
> Screenshots and code available in this tweets in this Twitter thread:
>
> https://twitter.com/swissspidy/status/766004453807882244

New description:

 Since upgrading my site to 4.6, we've had strange behavior regarding
 featured images on preview. Whenever a preview_nonce appears in a preview
 URL, an additional &_thumbnail_id=xxxxxxx appears. And at that point, all
 featured-image thumbnails on the page become that specific image — even
 when they appear in a different loop or are called through other means.
 @swissspidy says on Twitter this may be related to this change in 4.6:
 [38118]

 Adding a wp_reset_postdata() does not seem to fix the problem. Screenshots
 and code available in this tweets in this Twitter thread:

 https://twitter.com/swissspidy/status/766004453807882244

--

--
Ticket URL: <https://core.trac.wordpress.org/ticket/37697#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list