Skip to content

Commit

Permalink
🐛 Some wordpress instances have prefixed database tables so handling …
Browse files Browse the repository at this point in the history
…that

In some wordpress setups you can have prefixed tables. So this ensures we always go to wordpress to ask for the table.
  • Loading branch information
CWDN committed Jun 18, 2024
1 parent 6bd8ded commit 1913882
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/classes/admin/mapping/field-types/acf.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1913882

Please sign in to comment.