WordPress.org

Make WordPress Core

Ticket #23759: post.php.patch

File post.php.patch, 1016 bytes (added by alex-ye, 13 months ago)
  • post.php

    # This patch file was generated by NetBeans IDE
    # Following Index: paths are relative to: \wp-includes
    # It uses platform neutral UTF-8 encoding and \n newlines.
    # Above lines and this line are ignored by the patching process.
     
    28792879                do_action( 'post_updated', $post_ID, $post_after, $post_before); 
    28802880        } 
    28812881 
    2882         do_action('save_post', $post_ID, $post); 
    2883         do_action('wp_insert_post', $post_ID, $post); 
     2882        do_action( 'save_post', $post_ID, $post, $update ); 
     2883        do_action( 'wp_insert_post', $post_ID, $post, $update ); 
    28842884 
    28852885        return $post_ID; 
    28862886} 
     
    29652965        wp_transition_post_status( 'publish', $old_status, $post ); 
    29662966 
    29672967        do_action( 'edit_post', $post->ID, $post ); 
    2968         do_action( 'save_post', $post->ID, $post ); 
    2969         do_action( 'wp_insert_post', $post->ID, $post ); 
     2968        do_action( 'save_post', $post->ID, $post, true ); 
     2969        do_action( 'wp_insert_post', $post->ID, $post, true ); 
    29702970} 
    29712971 
    29722972/**