[wp-trac] [WordPress Trac] #45768: Content before editing are displayed in the preview

WordPress Trac noreply at wordpress.org
Wed Jan 9 01:25:01 UTC 2019


#45768: Content before editing are displayed in the preview
--------------------------+------------------------------
 Reporter:  tmatsuur      |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Editor        |     Version:
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------

Comment (by tmatsuur):

 I traced the request at preview.

 1.Press the preview button to request automatic save.
 {{{
 POST /wp-json/wp/v2/posts/299/autosaves?_locale=user
 }}}

 2.Only if there are any meta boxes, there was a next request immediately
 after the above request.
 {{{
 POST /wp-admin/post.php?post=299&action=edit&meta-box-
 loader=1&_wpnonce=a537ca4521&_locale=user
 }}}

 3.Subsequently, this request will be redirected to the following URL (/wp-
 admin/post.php:213).
 {{{
 GET /wp-admin/post.php?post=299&action=edit&message=4
 }}}

 4.This request seems to delete the autosaved post information for preview
 (/wp-admin/edit-form-blocks.php:301).
 As a result, the contents before editing are displayed on the preview
 window.

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


More information about the wp-trac mailing list