Make WordPress Core

Ticket #48769: 48769.diff

File 48769.diff, 965 bytes (added by henry.wright, 7 years ago)
  • wp-includes/post.php

    diff --git wp-includes/post.php wp-includes/post.php
    index 6ffd960c72..31d1a5601d 100644
    function wp_insert_post( $postarr, $wp_error = false ) {  
    40964096                 * @param int     $post_ID      Post ID.
    40974097                 * @param WP_Post $post_after   Post object following the update.
    40984098                 * @param WP_Post $post_before  Post object before the update.
     4099                 * @param array   $postarr      An array of sanitized post data.
    40994100                 */
    4100                 do_action( 'post_updated', $post_ID, $post_after, $post_before );
     4101                do_action( 'post_updated', $post_ID, $post_after, $post_before, $postarr );
     4102        } else {
     4103                /**
     4104                 * Fires once a new post has been inserted.
     4105                 *
     4106                 * @since X.X.X
     4107                 *
     4108                 * @param int     $post_ID Post ID.
     4109                 * @param WP_Post $post    Post object following the insertion.
     4110                 * @param array   $postarr An array of sanitized post data.
     4111                 */
     4112                do_action( 'post_inserted', $post_ID, $post, $postarr );
    41014113        }
    41024114
    41034115        /**