Skip to content

Commit

Permalink
Merge pull request #823 from equalizedigital/william/fix-warnings-cou…
Browse files Browse the repository at this point in the history
…nt-multisite

Remove a duplicated siteid reference in query
  • Loading branch information
pattonwebz authored Dec 5, 2024
2 parents a502fa3 + 3585c1a commit 0410cfb
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 0410cfb

Please sign in to comment.