File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -1142,6 +1142,8 @@ private function localize_dashboard_app() {
1142
1142
}
1143
1143
}
1144
1144
1145
+ $ cron_disabled = apply_filters ( 'optml_offload_wp_cron_disabled ' , defined ( 'DISABLE_WP_CRON ' ) && constant ( 'DISABLE_WP_CRON ' ) === true );
1146
+
1145
1147
return [
1146
1148
'strings ' => $ this ->get_dashboard_strings (),
1147
1149
'assets_url ' => OPTML_URL . 'assets/ ' ,
@@ -1164,7 +1166,7 @@ private function localize_dashboard_app() {
1164
1166
'days_since_install ' => round ( ( time () - get_option ( 'optimole_wp_install ' , 0 ) ) / DAY_IN_SECONDS ),
1165
1167
'is_offload_media_available ' => $ is_offload_media_available ,
1166
1168
'auto_connect ' => $ auto_connect ,
1167
- 'cron_disabled ' => defined ( ' DISABLE_WP_CRON ' ) && DISABLE_WP_CRON && ! function_exists ( 'as_schedule_single_action ' ),
1169
+ 'cron_disabled ' => $ cron_disabled && ! function_exists ( 'as_schedule_single_action ' ),
1168
1170
'submenu_links ' => [
1169
1171
[
1170
1172
'href ' => 'admin.php?page=optimole#settings ' ,
You can’t perform that action at this time.
0 commit comments