mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-12 04:40:26 +00:00
Cron API: Add a missing $wp_error parameter to the pre_reschedule_event filter.
Props tmatsuur, mukesh27 Fixes #52572 See #49961 git-svn-id: https://develop.svn.wordpress.org/trunk@50394 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -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 ) {
|
||||
|
||||
Reference in New Issue
Block a user