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

WordPress Trac noreply at wordpress.org
Wed Nov 10 01:49:38 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:  Future
                                                 |  Release
Component:  Revisions                            |     Version:
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch has-unit-tests has-        |     Focuses:
  testing-info needs-testing needs-dev-note      |
-------------------------------------------------+-------------------------
Changes (by peterwilsoncc):

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


Comment:

 At the moment, revisions can be disable with `remove_action(
 'post_updated', 'wp_save_post_revision', 10, 1 );`, with this change this
 will no longer be effective.

 The BC change might be fine but I am not keen to make the decision under
 the pressure of feature freeze in an hour or two.

 I've moved this to the next release (actually future release because the
 6.0 milestone doesn't exit) but let's keep the discussion going to enable
 a considered, less pressured decision.

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


More information about the wp-trac mailing list