Skip to content

Commit

Permalink
chore: improve context readability
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelpeixe committed Jan 10, 2025
1 parent fe83ff0 commit 7a9dfb5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions includes/reader-activation/sync/class-esp-sync.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,6 @@ public static function sync( $contact, $context = '' ) {
$context = static::$context;
}


// If we're running in a data event, queue the sync to run on shutdown.
if ( Data_Events::current_event() && ! did_action( 'shutdown' ) ) {
if ( ! isset( self::$queued_syncs[ $contact['email'] ] ) ) {
Expand Down Expand Up @@ -271,7 +270,7 @@ public static function run_queued_syncs() {
continue;
}

self::sync( $contact, implode( ', ', $contexts ) );
self::sync( $contact, implode( '; ', $contexts ) );
}

self::$queued_syncs = [];
Expand Down

0 comments on commit 7a9dfb5

Please sign in to comment.