WordPress.org

Make WordPress Core

Ticket #52572: 52572.diff

File 52572.diff, 869 bytes (added by mukesh27, 8 months ago)
  • wp-includes/cron.php

    diff --git a/wp-includes/cron.php b/wp-includes/cron.php
    index 19b0fc7365..2736e1ea1e 100644
    a b function wp_reschedule_event( $timestamp, $recurrence, $hook, $args = array(), $ 
    396396         *     @type array        $args      Array containing each separate argument to pass to the hook's callback function.
    397397         *     @type int          $interval  The interval time in seconds for the schedule. Only present for recurring events.
    398398         * }
    399          * @param bool               $wp_error Whether to return a WP_Error on failure.
     399         * @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 ) {
    404404                if ( $wp_error && false === $pre ) {