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

WordPress Trac noreply at wordpress.org
Tue Nov 9 21:57:46 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.9
Component:  Revisions                            |     Version:
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch has-unit-tests has-        |     Focuses:
  testing-info needs-testing commit needs-dev-   |
  note                                           |
-------------------------------------------------+-------------------------
Changes (by adamsilverstein):

 * keywords:  has-patch has-unit-tests has-testing-info needs-testing =>
     has-patch has-unit-tests has-testing-info needs-testing commit needs-
     dev-note


Comment:

 Marking this for commit; also, marking as `needs-dev-note`. We should
 inform developers about this change, and we can also provide a way they
 can opt out if they need to for some reason. namely:
 `remove_action( 'new_to_publish', 'wp_save_post_revision', 10, 1 );`

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


More information about the wp-trac mailing list