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

WordPress Trac noreply at wordpress.org
Thu Oct 18 16:16:42 UTC 2018


#43316: REST API: Support autosaves
---------------------------------------------+-----------------------
 Reporter:  kraftbj                          |       Owner:  rmccue
     Type:  enhancement                      |      Status:  assigned
 Priority:  normal                           |   Milestone:  5.0
Component:  REST API                         |     Version:
 Severity:  normal                           |  Resolution:
 Keywords:  has-patch has-unit-tests commit  |     Focuses:  rest-api
---------------------------------------------+-----------------------

Comment (by birgire):

 [attachment:"43316.21.diff"] runs successfully* on my install with the
 filtering in place.

 *For some reason the patch doesn't apply cleanly though on my install, I
 had to adjust the some files by hand.

 I noticed a small typo in the filter's description for
 {{{$doung_autosave}}}:

 {{{
 @param bool $doung_autosave Is method called as part of an autosave?

 }}}

 If this approach will be the workaround here, then it seems like a
 {{{wp_doing_autosave()}}} function would be useful to filter out other
 cases of {{{DOING_AUTOSAVE}}}, for consistency ?

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


More information about the wp-trac mailing list