[wp-trac] [WordPress Trac] #51374: The initial revision of an imported post goes missing

WordPress Trac noreply at wordpress.org
Tue Sep 22 09:58:25 UTC 2020


#51374: The initial revision of an imported post goes missing
-------------------------------+-----------------------------
 Reporter:  johnbillion        |      Owner:  (none)
     Type:  defect (bug)       |     Status:  new
 Priority:  normal             |  Milestone:  Awaiting Review
Component:  Posts, Post Types  |    Version:
 Severity:  normal             |   Keywords:  needs-patch
  Focuses:  administration     |
-------------------------------+-----------------------------
 There are two problems relating to revisions when making a change to an
 imported post.

 1. The first change does not cause the Revisions meta box to appear. A
 second change is required.
 2. The first change gets "lost" and appears as if it was part of the first
 version of the post.

 Steps to reproduce:

 * Import a published post
 * Make a change to it
 * Observe that the "Revisions" meta box does not show up even after
 reloading the editing screen
 * Make a second change to the post
 * Click the "2 Revisions" link and observe that the second revision is
 recorded correctly, but that the first revision shows the entire contents
 of the post being added. The first change made "disappears" as it's
 incorrectly included in the entire contents of the first revision.

 I think the root cause here is that imported posts do not create an
 initial revision.

 A possible solution might be to create an initial revision at the point
 where a user makes a change to a post and there isn't an existing
 revision.

 I assume this can also be reproduced by deleting all the revisions from
 your database and then making changes to a post.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/51374>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list