[wp-trac] [WordPress Trac] #54708: Fix block theme featured image preview

WordPress Trac noreply at wordpress.org
Tue Jan 4 00:18:25 UTC 2022


#54708: Fix block theme featured image preview
-------------------------------------------------+-------------------------
 Reporter:  adamsilverstein                      |       Owner:  audrasjb
     Type:  defect (bug)                         |      Status:  closed
 Priority:  normal                               |   Milestone:  5.9
Component:  Revisions                            |     Version:  trunk
 Severity:  normal                               |  Resolution:  fixed
 Keywords:  has-patch has-screenshots commit     |     Focuses:
  dev-reviewed                                   |
-------------------------------------------------+-------------------------
Changes (by audrasjb):

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


Comment:

 In [changeset:"52433" 52433]:
 {{{
 #!CommitTicketReference repository="" revision="52433"
 Revisions: Improve `_set_preview` for case when autosave is missing.

 This change fixes an issue where autosaves are deleted when a new autosave
 is sent with the same data. In the block editor, this causes the preview
 data to be missing on post previews. The end result of this is that if one
 set a preview image using a block theme on a published post and preview
 it, the featured image is not displayed correctly. Skipping deleting the
 previous autosave fixes the issue.

 Props adamsilverstein, walbo, audrasjb, Mamaduka, hellofromTonya.
 Fixes #54708.
 }}}

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


More information about the wp-trac mailing list