[wp-trac] [WordPress Trac] #29077: Undefined index notice in wp_reschedule_event()

WordPress Trac noreply at wordpress.org
Thu Jul 31 17:23:19 UTC 2014


#29077: Undefined index notice in wp_reschedule_event()
----------------------------+----------------------------------------
 Reporter:  SergeyBiryukov  |      Owner:
     Type:  defect (bug)    |     Status:  new
 Priority:  normal          |  Milestone:  Awaiting Review
Component:  Cron API        |    Version:
 Severity:  normal          |   Keywords:  needs-patch good-first-bug
  Focuses:                  |
----------------------------+----------------------------------------
 Previously: #22268

 If you have a custom cron schedule defined by a plugin, and a recurring
 event attached to it, you'll get a notice if the plugin is no longer
 available:
 {{{
 PHP Notice: Undefined index: minutely in wp-includes/cron.php on line 111
 }}}

 The notice comes from `wp_reschedule_event()`: [source:tags/3.9.1/src/wp-
 includes/cron.php#L92].

 In line 110, we should replace redundant `0 == $interval` check with
 `isset( $schedules[ $recurrence ] )`.

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


More information about the wp-trac mailing list