diff --git src/wp-includes/rest-api/endpoints/class-wp-rest-autosaves-controller.php src/wp-includes/rest-api/endpoints/class-wp-rest-autosaves-controller.php
index 0a2cf5d49b..42848e10d3 100644
|
|
|
class WP_REST_Autosaves_Controller extends WP_REST_Revisions_Controller { |
| 373 | 373 | } |
| 374 | 374 | |
| 375 | 375 | if ( ! $autosave_is_different ) { |
| 376 | | wp_delete_post_revision( $old_autosave->ID ); |
| 377 | 376 | return new WP_Error( |
| 378 | 377 | 'rest_autosave_no_changes', |
| 379 | 378 | __( 'There is nothing to save. The autosave and the post content are the same.' ), |