Make WordPress Core


Ignore:
Timestamp:
08/05/2013 09:41:51 PM (11 years ago)
Author:
nacin
Message:

Pass $update = true to the save_post and wp_insert_post hooks in wp_publish_post().

see #21450, [24823].

props wpsmith.
fixes #24957.

File:
1 edited

Legend:

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

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