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

WordPress Trac noreply at wordpress.org
Wed Aug 31 18:43:23 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:  has-patch has-unit-tests commit      |     Focuses:
  fixed-major                                    |
-------------------------------------------------+-------------------------
Changes (by jeremyfelt):

 * status:  reopened => closed
 * resolution:   => fixed


Comment:

 In [changeset:"38476"]:
 {{{
 #!CommitTicketReference repository="" revision="38476"
 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.

 Merge of [38433] to the 4.6 branch.

 Props swissspidy, joemcgill.
 Fixes #37697.
 }}}

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


More information about the wp-trac mailing list