[wp-trac] [WordPress Trac] #43316: REST API: Support autosaves
WordPress Trac
noreply at wordpress.org
Wed Oct 17 01:22: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):
I wonder if it's this part:
{{{
if ( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE ) {
return;
}
}}}
in the {{{wp_save_post_revision()}}} that's the reason for the revisions
not created in {{{WP_Test_REST_Revisions_Controller::setUp()}}},
is affected by
{{{
if ( ! defined( 'DOING_AUTOSAVE' ) ) {
define( 'DOING_AUTOSAVE', true );
}
}}}
in {{{WP_REST_Autosaves_Controller::create_item()}}} ?
Maybe this could explain why {{{WP_REST_Autosaves_Controller}}} and
{{{WP_Test_REST_Revisions_Controller}}} don't play nice together?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/43316#comment:106>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list