#29077 closed defect (bug) (fixed)
Undefined index notice in wp_reschedule_event()
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 4.0 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Cron API | Keywords: | good-first-bug has-patch |
Focuses: | Cc: |
Description
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()
: tags/3.9.1/src/wp-includes/cron.php#L92.
In line 110, we should replace redundant 0 == $interval
check with isset( $schedules[ $recurrence ] )
.
Attachments (2)
Change History (5)
Note: See
TracTickets for help on using
tickets.
patch with correct indentation