Skip to content

Commit

Permalink
Poprawka: inicjalizacja $stats jako tablica, aby zapobiec błędom depr…
Browse files Browse the repository at this point in the history
…ecated
  • Loading branch information
mtworoz committed Jun 6, 2024
1 parent 3b30edb commit 469faba
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions includes/payments/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 )
Expand Down

0 comments on commit 469faba

Please sign in to comment.