WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #43316, comment 23


Ignore:
Timestamp:
03/08/2018 08:00:17 PM (4 years ago)
Author:
azaozz
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #43316, comment 23

    initial v1  
    22> can you describe the use case for this? "Autosaves controller to be able to handle updating the post too (without creating another revision)."
    33
    4 That's already in the patch, just better to do `define( 'DOING_AUTOSAVE', true );` instead of removing and then reading the action `remove_action( 'post_updated', 'wp_save_post_revision' );`. Plugins may be "watching for" the constant too.
     4That's already in the patch, just better to do `define( 'DOING_AUTOSAVE', true );` instead of removing and then re-adding the action `remove_action( 'post_updated', 'wp_save_post_revision' );`. Plugins may be "watching for" the constant too.