Restore the strtotime(). See #9285.

git-svn-id: https://develop.svn.wordpress.org/trunk@14507 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Peter Westwood 2010-05-07 20:57:23 +00:00
parent 97af53477e
commit 5b4e507d7d
1 changed files with 1 additions and 1 deletions

View File

@ -4143,7 +4143,7 @@ function _transition_post_status($new_status, $old_status, $post) {
*/
function _future_post_hook( $deprecated = '', $post ) {
wp_clear_scheduled_hook( 'publish_future_post', array( $post->ID ) );
wp_schedule_single_event( get_gmt_from_date( $post->post_date ) . ' GMT', 'publish_future_post', array( $post->ID ) );
wp_schedule_single_event( strtotime( get_gmt_from_date( $post->post_date ) . ' GMT') , 'publish_future_post', array( $post->ID ) );
}
/**