[wp-trac] [WordPress Trac] #43316: REST API: Support autosaves

WordPress Trac noreply at wordpress.org
Thu Mar 8 19:59:34 UTC 2018


#43316: REST API: Support autosaves
-------------------------------------+-----------------------
 Reporter:  kraftbj                  |       Owner:
     Type:  enhancement              |      Status:  new
 Priority:  normal                   |   Milestone:  5.0
Component:  REST API                 |     Version:
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch needs-testing  |     Focuses:  rest-api
-------------------------------------+-----------------------

Comment (by azaozz):

 Replying to [comment:22 adamsilverstein]:
 > can you describe the use case for this? "Autosaves controller to be able
 to handle updating the post too (without creating another revision)."

 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.

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


More information about the wp-trac mailing list