_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.

git-svn-id: http://svn.automattic.com/wordpress/trunk@12679 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
westi 2010-01-09 09:55:41 +00:00
parent 9a58ea0649
commit 03ed98ab17
1 changed files with 3 additions and 3 deletions

View File

@ -3581,12 +3581,12 @@ function _transition_post_status($new_status, $old_status, $post) {
* @since 2.3.0
* @access private
*
* @param int $deprecated Not Used. Can be set to null.
* @param int $deprecated Not used. Can be set to null. Never implemented.
* Not marked as deprecated with _deprecated_argument() as it conflicts with
* wp_transition_post_status() and the default filter for _future_post_hook().
* @param object $post Object type containing the post information
*/
function _future_post_hook( $deprecated = '', $post ) {
if ( !empty( $deprecated ) )
_deprecated_argument( __FUNCTION__, '0.0' );
wp_clear_scheduled_hook( 'publish_future_post', array( $post->ID ) );
wp_schedule_single_event( strtotime( $post->post_date_gmt. ' GMT' ), 'publish_future_post', array( $post->ID ) );
}