Make WordPress Core


Ignore:
Timestamp:
02/20/2021 12:09:45 PM (4 years ago)
Author:
johnbillion
Message:

Cron API: Add a missing $wp_error parameter to the pre_reschedule_event filter.

Props tmatsuur, mukesh27

Fixes #52572
See #49961

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/cron.php

    r50175 r50394  
    399399     * @param bool               $wp_error Whether to return a WP_Error on failure.
    400400     */
    401     $pre = apply_filters( 'pre_reschedule_event', null, $event );
     401    $pre = apply_filters( 'pre_reschedule_event', null, $event, $wp_error );
    402402
    403403    if ( null !== $pre ) {
Note: See TracChangeset for help on using the changeset viewer.