Disable subscriber activity tracking for admin interface

[MAILPOET-3897]
This commit is contained in:
Rostislav Wolny
2022-01-20 16:38:16 +01:00
committed by Veljko V
parent ad94cffdea
commit c38d3aeac8

View File

@@ -75,6 +75,11 @@ class SubscriberActivityTracker {
}
private function shouldTrack() {
// Don't track in admin interface
if ($this->wp->isAdmin()) {
return false;
}
$timestamp = $this->getLatestTimestamp();
// Cookie tracking is disabled and there is no logged-in subscriber who could be used to determine last activity timestamp
if ($timestamp === null) {