WordPress.org

Make WordPress Core

Ticket #24957: 24957.patch

File 24957.patch, 531 bytes (added by wpsmith, 7 years ago)
  • wp-includes/post.php

     
    29692969        wp_transition_post_status( 'publish', $old_status, $post );
    29702970
    29712971        do_action( 'edit_post', $post->ID, $post );
    2972         do_action( 'save_post', $post->ID, $post );
    2973         do_action( 'wp_insert_post', $post->ID, $post );
     2972        do_action( 'save_post', $post->ID, $post, true );
     2973        do_action( 'wp_insert_post', $post->ID, $post, true );
    29742974}
    29752975
    29762976/**