- Timestamp:
- 07/10/2023 10:58:33 PM (22 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-autosaves-controller.php
r56163 r56193 230 230 231 231 if ( $is_draft && (int) $post->post_author === $user_id && ! $post_lock ) { 232 // Draft posts for the same author: autosaving updates the post and does not create a revision. 233 // Convert the post object to an array and add slashes, wp_update_post() expects escaped array. 232 /* 233 * Draft posts for the same author: autosaving updates the post and does not create a revision. 234 * Convert the post object to an array and add slashes, wp_update_post() expects escaped array. 235 */ 234 236 $autosave_id = wp_update_post( wp_slash( (array) $prepared_post ), true ); 235 237 } else {
Note: See TracChangeset
for help on using the changeset viewer.