Closed peterwilsoncc closed 4 years ago
Related: WP Core ticket #49824 in 5.4 bumps the priority on this a little as a cron job is scheduled prior to the plugins_loaded
hook by the site health component.
cc @roborourke
Any updates?
No updates yet, probably because we don't use the site health stuff on our hosting it hasn't really come up as an issue for us.
So I guess the best we can do is just to run the initial bootstrap function immediately when the plugin file is loaded.
Fix released in 2.0.1
The cron array may be accessed prior to the
plugins_loaded
action firing, the most likely candidates are:muplugins_loaded
plugin_loaded
added in WP 5.1muplugin_loaded
added in WP 5.1Running
Connector\bootstrap()
as the plugin isrequire
d will filter the cron array as soon as the code is available.On the downside, the
is_installed()
check would probably need to be included in the filters but as it's cached, this shouldn't cause too much of a problem.