#29077 closed defect (bug) (fixed)
Undefined index notice in wp_reschedule_event()
| Reported by: | SergeyBiryukov | Owned by: | SergeyBiryukov |
|---|---|---|---|
| Priority: | normal | Milestone: | 4.0 |
| Component: | Cron API | Version: | |
| Severity: | normal | Keywords: | good-first-bug has-patch |
| Cc: | Focuses: |
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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
patch with correct indentation