Skip to content

Commit

Permalink
Remove a duplicated siteid reference in query
Browse files Browse the repository at this point in the history
When this is here it always results in a falsey value which loosely casts to 0 making this only able to retrieve warning counts of site 0
  • Loading branch information
pattonwebz authored Nov 26, 2024
1 parent cf1f2e6 commit 3585c1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/classes/class-summary-generator.php
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ private function count_warnings() {
global $wpdb;

$warnings_parameters = [ get_current_blog_id(), $this->post_id, 'warning', 0 ];
$warnings_where = 'WHERE siteid = siteid = %d and postid = %d and ruletype = %s and ignre = %d';
$warnings_where = 'WHERE siteid = %d and postid = %d and ruletype = %s and ignre = %d';
if ( EDAC_ANWW_ACTIVE ) {
array_push( $warnings_parameters, 'link_blank' );
$warnings_where .= ' and rule != %s';
Expand Down

0 comments on commit 3585c1a

Please sign in to comment.