Skip to content

Commit a6d03e0

Browse files
don’t start a session for wp-cron
Possible fix for #85 and #86 Fixes #82
1 parent 7582a2a commit a6d03e0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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)