WordPress.org

Make WordPress Core

Ticket #21450: 21450.2.diff

File 21450.2.diff, 507 bytes (added by ericmann, 5 years ago)

Alternatively, pass the value of $update back through existing hooks.

  • wp-includes/post.php

     
    28722872                do_action( 'post_updated', $post_ID, $post_after, $post_before);
    28732873        }
    28742874
    2875         do_action('save_post', $post_ID, $post);
    2876         do_action('wp_insert_post', $post_ID, $post);
     2875        do_action( 'save_post', $post_ID, $post, $update );
     2876        do_action( 'wp_insert_post', $post_ID, $post, $update );
    28772877
    28782878        return $post_ID;
    28792879}