Another https update
authorSteve Sutton <steve@gaslightmedia.com>
Fri, 7 Jul 2017 20:55:39 +0000 (16:55 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Fri, 7 Jul 2017 20:55:39 +0000 (16:55 -0400)
Need to put the or part into ()

controllers/ToolboxImport.php

index dee1fa9..3454563 100644 (file)
             $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 '<pre>'.$sql.'</pre>';
             $results = $wpdb->get_results($sql, OBJECT);