Make WordPress Core

Changeset 24823


Ignore:
Timestamp:
07/28/2013 09:05:25 PM (11 years ago)
Author:
nacin
Message:

Pass $update to the save_post and wp_insert_post hooks in wp_insert_post(). props ericmann, fixes #21450.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/post.php

    r24807 r24823  
    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;
Note: See TracChangeset for help on using the changeset viewer.