Skip to content

Commit

Permalink
Merge pull request #32 from Bynder/bug/GC-5077
Browse files Browse the repository at this point in the history
[GC-5077] Fixed incompatibility with prefixed database tables
  • Loading branch information
CWDN authored Jun 18, 2024
2 parents 6bd8ded + 1913882 commit e948156
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 e948156

Please sign in to comment.