Opened 8 years ago
Closed 8 years ago
#39011 closed defect (bug) (duplicate)
When updating posts, the initial version is not saved as a revision.
Reported by: | georgestephanis | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 4.7 |
Component: | Revisions | Keywords: | has-unit-tests |
Focuses: | Cc: |
Description (last modified by )
When you save a post, then update it, the initial version isn't saved.
This is often not seen, because when calling get_default_post_to_edit()
with true as the second parameter, an empty post is created in the db, and that not being seen after the fact is hardly missed.
However, if wp_insert_post()
is called directly, the initial content currently gets lost.
Unit test attached.
Attachments (1)
Change History (4)
Note: See
TracTickets for help on using
tickets.
Duplicate of #30854.