From d58ae0c24de6e2d6971ff860368133a2826255b3 Mon Sep 17 00:00:00 2001 From: Steve Sutton Date: Fri, 7 Jul 2017 16:55:39 -0400 Subject: [PATCH] Another https update Need to put the or part into () --- controllers/ToolboxImport.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/controllers/ToolboxImport.php b/controllers/ToolboxImport.php index dee1fa9..3454563 100644 --- a/controllers/ToolboxImport.php +++ b/controllers/ToolboxImport.php @@ -1161,7 +1161,8 @@ $sql = " SELECT * FROM {$wpdb->prefix}posts - WHERE post_content LIKE '%http://is0.gaslightmedia.com%' OR post_content LIKE '%https://is0.gaslightmedia.com%' + WHERE (post_content LIKE '%http://is0.gaslightmedia.com%' OR + post_content LIKE '%https://is0.gaslightmedia.com%') AND post_type = 'page'"; echo '
'.$sql.'
'; $results = $wpdb->get_results($sql, OBJECT); -- 2.17.1