Change cron arg passing. Props masquerade. fixes #3169.

git-svn-id: https://develop.svn.wordpress.org/trunk@4362 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2006-10-08 17:50:21 +00:00
parent 0bd715961c
commit f03d22ae89
4 changed files with 6 additions and 9 deletions

View File

@@ -698,7 +698,7 @@ function wp_insert_post($postarr = array()) {
// Schedule publication.
if ( 'future' == $post_status )
wp_schedule_single_event(strtotime($post_date_gmt. ' GMT'), 'publish_future_post', $post_ID);
wp_schedule_single_event(strtotime($post_date_gmt. ' GMT'), 'publish_future_post', array($post_ID));
do_action('save_post', $post_ID);
do_action('wp_insert_post', $post_ID);