[wp-trac] [WordPress Trac] #52572: About the wp_error parameter of the pre_reschedule_event filter

WordPress Trac noreply at wordpress.org
Fri Feb 19 07:20:08 UTC 2021


#52572: About the wp_error parameter of the pre_reschedule_event filter
--------------------------+-----------------------------
 Reporter:  tmatsuur      |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Cron API      |    Version:  trunk
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 I found a little something strange in the source code of cron.php.

 It is in the wp_reschedule_event function.

 {{{
 $pre = apply_filters( 'pre_reschedule_event', null, $event );
 }}}

 The comment states that the wp_error parameter has been added,
 and I think the following is correct:

 {{{
 $pre = apply_filters( 'pre_reschedule_event', null, $event, $wp_error );
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/52572>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list