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
This commit is contained in:
John Blackbourn 2021-02-20 12:11:03 +00:00
parent 7f91e27312
commit 8b7f965364
2 changed files with 2 additions and 2 deletions

View File

@ -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. * @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 ( null !== $pre ) {
if ( $wp_error && false === $pre ) { if ( $wp_error && false === $pre ) {

View File

@ -13,7 +13,7 @@
* *
* @global string $wp_version * @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. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.