Skip to content

Commit

Permalink
a better check for DISABLE_WP_CRON
Browse files Browse the repository at this point in the history
  • Loading branch information
salaros committed Apr 24, 2018
1 parent 2572e36 commit de22e7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Scripts.php
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ public static function createCronjob(Event $event)
{
self::init($event);

if (1 !== intval(getenv('DISABLE_WP_CRON'))) {
if (1 > intval(getenv('DISABLE_WP_CRON'))) {
return;
}

Expand Down

0 comments on commit de22e7c

Please sign in to comment.