projects
/
WP-Plugins
/
glm-wp-importer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7195f4e
)
Another https update
author
Steve Sutton
<steve@gaslightmedia.com>
Fri, 7 Jul 2017 20:55:39 +0000
(16:55 -0400)
committer
Steve 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
patch
|
blob
|
history
diff --git
a/controllers/ToolboxImport.php
b/controllers/ToolboxImport.php
index
dee1fa9
..
3454563
100644
(file)
--- 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 '<pre>'.$sql.'</pre>';
$results = $wpdb->get_results($sql, OBJECT);