Make WordPress Core

Changeset 12679


Ignore:
Timestamp:
01/09/2010 09:55:41 AM (15 years ago)
Author:
westi
Message:

_future_post_hook should not call _deprecated_argument() as it will always get that argument from the action it is hooked to. Fixes #11815 props nacin.

File:
1 edited

Legend:

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

    r12659 r12679  
    35823582 * @access private
    35833583 *
    3584  * @param int $deprecated Not Used. Can be set to null.
     3584 * @param int $deprecated Not used. Can be set to null. Never implemented.
     3585 *   Not marked as deprecated with _deprecated_argument() as it conflicts with
     3586 *   wp_transition_post_status() and the default filter for _future_post_hook().
    35853587 * @param object $post Object type containing the post information
    35863588 */
    35873589function _future_post_hook( $deprecated = '', $post ) {
    3588     if ( !empty( $deprecated ) )
    3589         _deprecated_argument( __FUNCTION__, '0.0' );
    35903590    wp_clear_scheduled_hook( 'publish_future_post', array( $post->ID ) );
    35913591    wp_schedule_single_event( strtotime( $post->post_date_gmt. ' GMT' ), 'publish_future_post', array( $post->ID ) );
Note: See TracChangeset for help on using the changeset viewer.