Disable subscriber activity tracking for admin interface
[MAILPOET-3897]
This commit is contained in:
committed by
Veljko V
parent
ad94cffdea
commit
c38d3aeac8
@@ -75,6 +75,11 @@ class SubscriberActivityTracker {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private function shouldTrack() {
|
private function shouldTrack() {
|
||||||
|
// Don't track in admin interface
|
||||||
|
if ($this->wp->isAdmin()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
$timestamp = $this->getLatestTimestamp();
|
$timestamp = $this->getLatestTimestamp();
|
||||||
// Cookie tracking is disabled and there is no logged-in subscriber who could be used to determine last activity timestamp
|
// Cookie tracking is disabled and there is no logged-in subscriber who could be used to determine last activity timestamp
|
||||||
if ($timestamp === null) {
|
if ($timestamp === null) {
|
||||||
|
Reference in New Issue
Block a user