From 1913882a568919b2af62b7152ed30b1854960b20 Mon Sep 17 00:00:00 2001 From: Chris Normansell Date: Tue, 18 Jun 2024 09:15:41 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Some=20wordpress=20instances=20h?= =?UTF-8?q?ave=20prefixed=20database=20tables=20so=20handling=20that?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit In some wordpress setups you can have prefixed tables. So this ensures we always go to wordpress to ask for the table. --- includes/classes/admin/mapping/field-types/acf.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/classes/admin/mapping/field-types/acf.php b/includes/classes/admin/mapping/field-types/acf.php index ceb5033..608a218 100644 --- a/includes/classes/admin/mapping/field-types/acf.php +++ b/includes/classes/admin/mapping/field-types/acf.php @@ -39,7 +39,7 @@ public function underscore_template( View $view ) { // ============= BUILD FIELD GROUP OPTIONS ============= $group_results = $wpdb->get_results( - "SELECT * FROM wp_posts WHERE post_type = 'acf-field-group' AND post_status = 'publish' AND post_parent = 0" + "SELECT * FROM {$wpdb->posts} WHERE post_type = 'acf-field-group' AND post_status = 'publish' AND post_parent = 0" ); // FIELD GROUPS