change quote (project nami wp)

mssql doesn't understand double quotes (microsoft azure)
This commit is contained in:
nalivaikoyura
2019-03-12 16:28:05 +02:00
parent 33eb54a3e3
commit 3ae781ef04
+1 -1
View File
@@ -95,7 +95,7 @@ if ( ! class_exists( 'um\core\Query' ) ) {
}
$pages = $wpdb->get_results('SELECT * FROM '.$wpdb->posts.' WHERE post_type = "page" AND post_status = "publish" ', OBJECT);
$pages = $wpdb->get_results("SELECT * FROM ".$wpdb->posts." WHERE post_type = 'page' AND post_status = 'publish' ", OBJECT);
$array = array();
if( $wpdb->num_rows > 0 ){