Make WordPress Core

Ticket #20564: 20564-new-action.2.diff

File 20564-new-action.2.diff, 530 bytes (added by adamsilverstein, 10 years ago)

pass entire $new_autosave array

  • src/wp-admin/includes/post.php

     
    15291529                $new_autosave['ID'] = $old_autosave->ID;
    15301530                $new_autosave['post_author'] = $post_author;
    15311531
     1532                do_action( '_wp_creating_autosave', $new_autosave );
     1533
    15321534                // If the new autosave has the same content as the post, delete the autosave.
    15331535                $post = get_post( $post_id );
    15341536                $autosave_is_different = false;