[wp-trac] [WordPress Trac] #53940: Reconsider return types for `_get_cron_array()`.
WordPress Trac
noreply at wordpress.org
Tue Feb 1 00:12:48 UTC 2022
#53940: Reconsider return types for `_get_cron_array()`.
------------------------------------------+------------------------------
Reporter: peterwilsoncc | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Cron API | Version:
Severity: normal | Resolution:
Keywords: needs-patch needs-unit-tests | Focuses:
------------------------------------------+------------------------------
Comment (by peterwilsoncc):
In [changeset:"52656" 52656]:
{{{
#!CommitTicketReference repository="" revision="52656"
Upgrade: Prevent warnings upgrading cron array.
An unvisited site may have an undefined cron array, resulting in
`_get_cron_array()` returning the value `false`. Previously this would
trigger warning in `upgrade_590()` as the function assumed
`_get_cron_array()` would alway return an array.
No database version change is required as the upgrade routine was
successful on sites with a cron array during 5.9.0. On sites without a
cron array, the error has already been thrown if they are running db
version 51917. This fix is only required for new sites or those upgrading
that have skipped 5.9.0.
Follow up to [51917].
Props chrisvanpatten, kapilpaul, SergeyBiryukov.
Fixes #54906.
See #53940.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/53940#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list