- code formatting;

This commit is contained in:
nikitasinelnikov
2019-03-12 21:28:29 +02:00
parent 252c247db9
commit 859798ce14
+7 -2
View File
@@ -94,8 +94,13 @@ if ( ! class_exists( 'um\core\Query' ) ) {
return 'reached_maximum_limit';
}
$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 ){