Make WordPress Core


Ignore:
Timestamp:
08/08/2007 04:08:06 AM (18 years ago)
Author:
markjaquith
Message:

Clear old future post cron entry before creating the authoritative one. Props Barry. fixes #4710

File:
1 edited

Legend:

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

    r5817 r5853  
    18351835function _future_post_hook($post_id, $post) {
    18361836    // Schedule publication.
     1837    wp_clear_scheduled_hook( 'publish_future_post', $post->ID );
    18371838    wp_schedule_single_event(strtotime($post->post_date_gmt. ' GMT'), 'publish_future_post', array($post->ID));
    18381839}
Note: See TracChangeset for help on using the changeset viewer.