WordPress.org

Make WordPress Core


Ignore:
Timestamp:
05/06/2010 08:40:29 PM (12 years ago)
Author:
westi
Message:

Improve cross DST future post publishing behaviour to try and publish at the correct time if we have PHP5 timezone support available to help. Fixes #9285 props technosailor.

File:
1 edited

Legend:

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

    r14478 r14487  
    41394139function _future_post_hook( $deprecated = '', $post ) {
    41404140    wp_clear_scheduled_hook( 'publish_future_post', array( $post->ID ) );
    4141     wp_schedule_single_event( strtotime( $post->post_date_gmt. ' GMT' ), 'publish_future_post', array( $post->ID ) );
     4141    wp_schedule_single_event( get_gmt_from_date( $post->post_date ) . ' GMT', 'publish_future_post', array( $post->ID ) );
    41424142}
    41434143
Note: See TracChangeset for help on using the changeset viewer.