Skip to content

Commit 6f66c2d

Browse files
committed
Cron run correct check
1 parent 9aabdeb commit 6f66c2d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/Optimizer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public function __construct() {
2727
protected function setup_cron() {
2828
if ( \JustImageOptimizer::$settings->saved()
2929
&& \JustImageOptimizer::$settings->auto_optimize
30-
&& wp_is_writable( WP_CONTENT_DIR )
30+
&& \JustImageOptimizer::$settings->check_requirements()
3131
) {
3232
add_action( 'init', array( $this, 'check_cron_scheduled' ) );
3333
add_filter( 'cron_schedules', array( $this, 'init_cron_schedule' ) );

0 commit comments

Comments
 (0)