From e931533237950d63a23b67adfcd7870fcd955ed6 Mon Sep 17 00:00:00 2001 From: JJ Date: Tue, 6 Aug 2024 12:05:10 -0400 Subject: [PATCH] remove redundant WHERE condition --- classes/class-admin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/class-admin.php b/classes/class-admin.php index 75a102bf..8cb23dbb 100644 --- a/classes/class-admin.php +++ b/classes/class-admin.php @@ -766,7 +766,7 @@ private function erase_stream_records() { FROM {$wpdb->stream} AS `stream` LEFT JOIN {$wpdb->streammeta} AS `meta` ON `meta`.`record_id` = `stream`.`ID` - WHERE 1=1 AND `blog_id`=%d;", + WHERE `blog_id`=%d;", get_current_blog_id() ) );