From 8b7f9653646a7ab7386850a56560f57b68384fca Mon Sep 17 00:00:00 2001 From: John Blackbourn Date: Sat, 20 Feb 2021 12:11:03 +0000 Subject: [PATCH] Cron API: Add a missing `$wp_error` parameter to the `pre_reschedule_event` filter. Props tmatsuur, mukesh27 Fixes #52572 See #49961 Built from https://develop.svn.wordpress.org/trunk@50394 git-svn-id: http://core.svn.wordpress.org/trunk@50005 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/cron.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/cron.php b/wp-includes/cron.php index 19b0fc7365..1666a09b27 100644 --- a/wp-includes/cron.php +++ b/wp-includes/cron.php @@ -398,7 +398,7 @@ function wp_reschedule_event( $timestamp, $recurrence, $hook, $args = array(), $ * } * @param bool $wp_error Whether to return a WP_Error on failure. */ - $pre = apply_filters( 'pre_reschedule_event', null, $event ); + $pre = apply_filters( 'pre_reschedule_event', null, $event, $wp_error ); if ( null !== $pre ) { if ( $wp_error && false === $pre ) { diff --git a/wp-includes/version.php b/wp-includes/version.php index b52c139d92..25e11d2e4d 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.7-beta3-50393'; +$wp_version = '5.7-beta3-50394'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.