From 07fd7c752a4d2d110b5db17ce1d77ed62d60d1e8 Mon Sep 17 00:00:00 2001 From: Rolly Bueno Date: Tue, 22 Jul 2025 20:58:28 +0800 Subject: [PATCH] Fix: Allow 'Spam' action on trashed replies in admin links --- src/includes/replies/template.php | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/includes/replies/template.php b/src/includes/replies/template.php index 7ddbf711..c31abc4c 100644 --- a/src/includes/replies/template.php +++ b/src/includes/replies/template.php @@ -1798,14 +1798,9 @@ function bbp_get_reply_admin_links( $args = array() ) { // See if links need to be unset $reply_status = bbp_get_reply_status( $r['id'] ); - if ( in_array( $reply_status, array( bbp_get_spam_status_id(), bbp_get_trash_status_id(), bbp_get_pending_status_id() ), true ) ) { - - // Spam link shouldn't be visible on trashed topics - if ( bbp_get_trash_status_id() === $reply_status ) { - unset( $r['links']['spam'] ); - + if ( in_array( $reply_status, array( bbp_get_spam_status_id(), bbp_get_pending_status_id() ), true ) ) { // Trash link shouldn't be visible on spam topics - } elseif ( bbp_get_spam_status_id() === $reply_status ) { + if ( bbp_get_spam_status_id() === $reply_status ) { unset( $r['links']['trash'] ); } }