Skip to content

Commit 52fa404

Browse files
Merge pull request #88 from andrewminion-luminfire/bugfix/wp-cron-session
don’t start a session for wp-cron
2 parents f278982 + 36a431d commit 52fa404

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Settings.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ public static function init() {
9999

100100
public static function registerSession()
101101
{
102-
if( !session_id() ) {
102+
if( ! session_id() && ! defined( 'DOING_CRON' ) ) {
103103
session_start();
104104
}
105105
}

0 commit comments

Comments
 (0)