mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-22 09:07:59 +01:00
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:
parent
7f91e27312
commit
8b7f965364
@ -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 ) {
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user