Skip to content

Commit e8039b9

Browse files
authored
Merge branch 'trunk' into fix/outbox-object-id
2 parents c3197bc + 7e1c9e1 commit e8039b9

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Significance: patch
2+
Type: fixed
3+
4+
Permanently delete reactions that were `Undo` instead of trashing them.

includes/handler/class-undo.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ public static function handle_undo( $activity, $user_id ) {
7575
return;
7676
}
7777

78-
$state = wp_trash_comment( $comment );
78+
$state = wp_delete_comment( $comment, true );
7979
}
8080

8181
/**

0 commit comments

Comments
 (0)