From 469fabaa5995addafd3fd71fe74bd979ca09549a Mon Sep 17 00:00:00 2001 From: mtworoz Date: Thu, 6 Jun 2024 15:03:37 +0200 Subject: [PATCH] =?UTF-8?q?Poprawka:=20inicjalizacja=20$stats=20jako=20tab?= =?UTF-8?q?lica,=20aby=20zapobiec=20b=C5=82=C4=99dom=20deprecated?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- includes/payments/functions.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/includes/payments/functions.php b/includes/payments/functions.php index 46b3c07421..6c7829ac1c 100644 --- a/includes/payments/functions.php +++ b/includes/payments/functions.php @@ -1706,6 +1706,8 @@ function edd_remove_payment_notes_in_comment_counts( $stats, $post_id ) { if ( false !== $stats ) return $stats; + $stats = []; + $where = 'WHERE comment_type != "edd_payment_note"'; if ( $post_id > 0 )