[wp-trac] [WordPress Trac] #53940: Reconsider return types for `_get_cron_array()`.
WordPress Trac
noreply at wordpress.org
Wed Feb 2 23:24:54 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:"52663" 52663]:
{{{
#!CommitTicketReference repository="" revision="52663"
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, audrasjb.
Merges [52656] and [52662] to the 5.9 branch.
Fixes #54906.
See #53940.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/53940#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list