[wp-trac] [WordPress Trac] #53950: `wp_schedule_single_event()` may add incorrectly populate the cron array.
WordPress Trac
noreply at wordpress.org
Fri Aug 20 00:18:37 UTC 2021
#53950: `wp_schedule_single_event()` may add incorrectly populate the cron array.
--------------------------------------+---------------------
Reporter: peterwilsoncc | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 5.9
Component: Cron API | Version: 5.2
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests | Focuses:
--------------------------------------+---------------------
Comment (by peterwilsoncc):
Replying to [comment:5 jrf]:
> For visibility, let me make sure this remark I made in the PR
description does not get lost:
>
> > Note: this may need an upgrade routine to be added to clean existing
cron arrays in which this `false` entry was inadvertently introduced.
>
> Opinions whether or not this is needed welcome.
I considered this overnight and decided to do it as part of the global
database upgrade routine. There's a very slim chance this has happened on
sites and having the `false` in there isn't a big problem so I figured
it's okay not to do it as part of a cron array upgrade.
I've [https://github.com/WordPress/wordpress-develop/pull/1605 linked a
pull request] to this ticket to go in with @jrf's.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/53950#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list