Skip to content

Commit

Permalink
Merge pull request #88 from andrewminion-luminfire/bugfix/wp-cron-ses…
Browse files Browse the repository at this point in the history
…sion

don’t start a session for wp-cron
  • Loading branch information
ArturMoczulski authored Feb 24, 2020
2 parents f278982 + 36a431d commit 52fa404
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ public static function init() {

public static function registerSession()
{
if( !session_id() ) {
if( ! session_id() && ! defined( 'DOING_CRON' ) ) {
session_start();
}
}
Expand Down

0 comments on commit 52fa404

Please sign in to comment.