WordPress.org

Make WordPress Core

Ticket #11815: 11815.diff

File 11815.diff, 938 bytes (added by nacin, 4 years ago)
  • wp-includes/post.php

     
    35823582 * @since 2.3.0 
    35833583 * @access private 
    35843584 * 
    3585  * @param int $deprecated Not Used. Can be set to null. 
     3585 * @param int $deprecated Not used. Can be set to null. Never implemented. 
     3586 *   Not marked as deprecated with _deprecated_argument() as it conflicts with 
     3587 *   wp_transition_post_status() and the default filter for _future_post_hook(). 
    35863588 * @param object $post Object type containing the post information 
    35873589 */ 
    35883590function _future_post_hook( $deprecated = '', $post ) { 
    3589         if ( !empty( $deprecated ) ) 
    3590                 _deprecated_argument( __FUNCTION__, '0.0' ); 
    35913591        wp_clear_scheduled_hook( 'publish_future_post', array( $post->ID ) ); 
    35923592        wp_schedule_single_event( strtotime( $post->post_date_gmt. ' GMT' ), 'publish_future_post', array( $post->ID ) ); 
    35933593}