We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 031cc81 commit 3c5cff4Copy full SHA for 3c5cff4
library/Helper/Post.php
@@ -19,7 +19,7 @@ public static function getPosttypeMetaKeys($posttype)
19
$metaKeys = $wpdb->get_results("
20
SELECT DISTINCT {$wpdb->postmeta}.meta_key
21
FROM {$wpdb->postmeta}
22
- LEFT JOIN wp_posts ON {$wpdb->postmeta}.post_id = {$wpdb->posts}.ID
+ LEFT JOIN {$wpdb->posts} ON {$wpdb->postmeta}.post_id = {$wpdb->posts}.ID
23
WHERE
24
{$wpdb->posts}.post_type = '$posttype'
25
AND NOT LEFT({$wpdb->postmeta}.meta_key, 1) = '_'
0 commit comments