Make WordPress Core


Ignore:
Timestamp:
12/30/2009 04:23:39 PM (14 years ago)
Author:
westi
Message:

Updates and improvements to _depreceated_argument. See #11386 props nacin.

File:
1 edited

Legend:

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

    r12571 r12584  
    35393539 * @param object $post Object type containing the post information
    35403540 */
    3541 function _future_post_hook($deprecated = '', $post) {
     3541function _future_post_hook( $deprecated = '', $post ) {
     3542    if ( !empty( $deprecated ) )
     3543        _deprecated_argument( __FUNCTION__, '0.0' );
    35423544    wp_clear_scheduled_hook( 'publish_future_post', array( $post->ID ) );
    3543     wp_schedule_single_event(strtotime($post->post_date_gmt. ' GMT'), 'publish_future_post', array($post->ID));
     3545    wp_schedule_single_event( strtotime( $post->post_date_gmt. ' GMT' ), 'publish_future_post', array( $post->ID ) );
    35443546}
    35453547
Note: See TracChangeset for help on using the changeset viewer.