Make WordPress Core


Ignore:
Timestamp:
03/07/2006 09:43:59 PM (19 years ago)
Author:
ryan
Message:

Cron improvements from masquerade. #2425

File:
1 edited

Legend:

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

    r3539 r3634  
    211211    }
    212212
    213     if ( 'future' == $post_status )
    214         wp_schedule_event(mysql2date('U', $post_date), 'once', 'publish_future_post', $post_ID);
    215 
     213    if ( 'future' == $post_status ) {
     214        wp_schedule_single_event(mysql2date('U', $post_date), 'publish_future_post', $post_ID);
     215    }
     216       
    216217    do_action('save_post', $post_ID);
    217218    do_action('wp_insert_post', $post_ID);
Note: See TracChangeset for help on using the changeset viewer.