Make WordPress Core

Ticket #9588: 9588.13.diff

File 9588.13.diff, 595 bytes (added by Denis-de-Bernardy, 16 years ago)
  • wp-includes/post.php

     
    16961696
    16971697        $time = strtotime( $post->post_date_gmt . ' GMT' );
    16981698
    1699         if ( $time > time() ) { // Uh oh, someone jumped the gun!
     1699        if ( $time > strtotime(gmdate("Y-m-d H:i:s")) ) { // Uh oh, someone jumped the gun!
    17001700                wp_clear_scheduled_hook( 'publish_future_post', $post_id ); // clear anything else in the system
    17011701                wp_schedule_single_event( $time, 'publish_future_post', array( $post_id ) );
    17021702                return;