Skip to content

Commit

Permalink
Merge pull request #1494 from publishpress/development
Browse files Browse the repository at this point in the history
Merge development
  • Loading branch information
agapetry authored Nov 18, 2023
2 parents 8702bcf + 5f8e85a commit 8178866
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions modules/notifications-log/notifications-log.php
Original file line number Diff line number Diff line change
Expand Up @@ -323,9 +323,12 @@ public function removeAsyncNotificationLog($params)
{
if (isset($params['log_id'])) {
$comment = get_comment($params['log_id']);
$log = new NotificationsLogModel($comment);

if ($comment instanceof WP_Comment) {
$log = new NotificationsLogModel($comment);

$log->archive();
$log->archive();
}
}
}

Expand Down

0 comments on commit 8178866

Please sign in to comment.