Changeset 12538 for trunk/wp-includes/post.php
- Timestamp:
- 12/24/2009 11:24:32 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/post.php
r12517 r12538 1252 1252 } 1253 1253 1254 wp_clear_scheduled_hook('publish_future_post', $postid);1254 wp_clear_scheduled_hook('publish_future_post', array( $postid ) ); 1255 1255 1256 1256 do_action('deleted_post', $postid); … … 1929 1929 1930 1930 if ( $time > time() ) { // Uh oh, someone jumped the gun! 1931 wp_clear_scheduled_hook( 'publish_future_post', $post_id); // clear anything else in the system1931 wp_clear_scheduled_hook( 'publish_future_post', array( $post_id ) ); // clear anything else in the system 1932 1932 wp_schedule_single_event( $time, 'publish_future_post', array( $post_id ) ); 1933 1933 return; … … 3525 3525 3526 3526 // Always clears the hook in case the post status bounced from future to draft. 3527 wp_clear_scheduled_hook('publish_future_post', $post->ID);3527 wp_clear_scheduled_hook('publish_future_post', array( $post->ID ) ); 3528 3528 } 3529 3529 … … 3540 3540 */ 3541 3541 function _future_post_hook($deprecated = '', $post) { 3542 wp_clear_scheduled_hook( 'publish_future_post', $post->ID);3542 wp_clear_scheduled_hook( 'publish_future_post', array( $post->ID ) ); 3543 3543 wp_schedule_single_event(strtotime($post->post_date_gmt. ' GMT'), 'publish_future_post', array($post->ID)); 3544 3544 }
Note: See TracChangeset
for help on using the changeset viewer.