WordPress.org

Make WordPress Core

Ticket #21450: 21450.1.diff

File 21450.1.diff, 459 bytes (added by ericmann, 5 years ago)

Refreshed patch

  • wp-includes/post.php

     
    28702870                do_action('edit_post', $post_ID, $post);
    28712871                $post_after = get_post($post_ID);
    28722872                do_action( 'post_updated', $post_ID, $post_after, $post_before);
     2873        } else {
     2874                do_action( 'new_post', $post_ID, $post );
    28732875        }
    28742876
    28752877        do_action('save_post', $post_ID, $post);