Not hooking early enough for `jetpack_offline_mode`
-
Jetpack::add_configure_hook
hooksplugins_loaded
at one level below any existing hook, for functionality that usesStatus::is_offline_mode
which in turn stores the result in a cache. There are several hooks toplugins_loaded
added at zero level (e.g.wp_maybe_load_widgets
,wp_maybe_load_embeds
,_wp_add_additional_image_sizes
.So when this plugin adds the
jetpack_offline_mode
filter, it is too late.Either you need to add the
plugins_loaded
filter withPHP_INT_MIN
priority, or (better), add thejetpack_offline_mode
filter during construction.Would you be able to update the plugin to resolve this?
The page I need help with: [log in to see the link]
- The topic ‘Not hooking early enough for `jetpack_offline_mode`’ is closed to new replies.