Ticket #20564: 20564-new-action.2.diff
File 20564-new-action.2.diff, 530 bytes (added by , 10 years ago) |
---|
-
src/wp-admin/includes/post.php
1529 1529 $new_autosave['ID'] = $old_autosave->ID; 1530 1530 $new_autosave['post_author'] = $post_author; 1531 1531 1532 do_action( '_wp_creating_autosave', $new_autosave ); 1533 1532 1534 // If the new autosave has the same content as the post, delete the autosave. 1533 1535 $post = get_post( $post_id ); 1534 1536 $autosave_is_different = false;