[wp-trac] [WordPress Trac] #30854: `wp_insert_post` doesn't save revision for new published post

WordPress Trac noreply at wordpress.org
Sat Jun 5 07:04:24 UTC 2021


#30854: `wp_insert_post` doesn't save revision for new published post
--------------------------------------+------------------------------
 Reporter:  JamesDiGioia              |       Owner:  adamsilverstein
     Type:  defect (bug)              |      Status:  assigned
 Priority:  normal                    |   Milestone:  5.8
Component:  Revisions                 |     Version:
 Severity:  normal                    |  Resolution:
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+------------------------------

Comment (by Clorith):

 I should mention that for testing it for existing content, I created a new
 topic in the front-end first, then I applied the patch and performed an
 edit.

 The expected scenario is that my content from the **Original content**
 should then show up in the revisions after the patch is applied, even if
 my topic was created without the patch.

 The actual result at this time is the same as if the patch had not been
 applied, and the **Original content** is lost upon editing.

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


More information about the wp-trac mailing list