[wp-trac] [WordPress Trac] #44818: cron: preventing duplicate events fails when the first event is too far in the past
WordPress Trac
noreply at wordpress.org
Tue Mar 5 04:57:48 UTC 2019
#44818: cron: preventing duplicate events fails when the first event is too far in
the past
-------------------------------------------------+-------------------------
Reporter: bodohugobarwich | Owner:
| peterwilsoncc
Type: defect (bug) | Status: assigned
Priority: normal | Milestone: 5.2
Component: Cron API | Version: 2.7
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests needs- | Focuses:
refresh 5-2-early |
-------------------------------------------------+-------------------------
Comment (by peterwilsoncc):
[attachment:"44818.diff"] includes:
* refresh existing patch against trunk
* updates tests to use return values added in WP 5.1
* improves logic for setting upper timestamp for determining the duplicate
range
* removes the `empty()` check in favor of ensuring `$crons` is always an
array.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/44818#comment:24>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list