Skip to content

Commit

Permalink
Merge branch 'feature-publishpress-statuses-integration' of https://g…
Browse files Browse the repository at this point in the history
…ithub.com/publishpress/PublishPress-Planner into feature-publishpress-statuses-integration
  • Loading branch information
agapetry committed Nov 18, 2023
2 parents d474dc8 + 8178866 commit 2ac787a
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 2ac787a

Please sign in to comment.