diff --git a/wp-includes/post.php b/wp-includes/post.php index b7c59f4949..fa747aa42a 100644 --- a/wp-includes/post.php +++ b/wp-includes/post.php @@ -698,7 +698,7 @@ function wp_insert_post($postarr = array()) { // Schedule publication. if ( 'future' == $post_status ) - wp_schedule_single_event(strtotime($post->post_date_gmt. ' GMT'), 'publish_future_post', $post_ID); + wp_schedule_single_event(strtotime($post_date_gmt. ' GMT'), 'publish_future_post', $post_ID); do_action('save_post', $post_ID); do_action('wp_insert_post', $post_ID);