_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:
parent
9a58ea0649
commit
03ed98ab17
|
@ -3581,12 +3581,12 @@ function _transition_post_status($new_status, $old_status, $post) {
|
||||||
* @since 2.3.0
|
* @since 2.3.0
|
||||||
* @access private
|
* @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
|
* @param object $post Object type containing the post information
|
||||||
*/
|
*/
|
||||||
function _future_post_hook( $deprecated = '', $post ) {
|
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_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 ) );
|
wp_schedule_single_event( strtotime( $post->post_date_gmt. ' GMT' ), 'publish_future_post', array( $post->ID ) );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue