Skip to content

Commit 3c5cff4

Browse files
Fix for wp-posts table error.
1 parent 031cc81 commit 3c5cff4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/Helper/Post.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public static function getPosttypeMetaKeys($posttype)
1919
$metaKeys = $wpdb->get_results("
2020
SELECT DISTINCT {$wpdb->postmeta}.meta_key
2121
FROM {$wpdb->postmeta}
22-
LEFT JOIN wp_posts ON {$wpdb->postmeta}.post_id = {$wpdb->posts}.ID
22+
LEFT JOIN {$wpdb->posts} ON {$wpdb->postmeta}.post_id = {$wpdb->posts}.ID
2323
WHERE
2424
{$wpdb->posts}.post_type = '$posttype'
2525
AND NOT LEFT({$wpdb->postmeta}.meta_key, 1) = '_'

0 commit comments

Comments
 (0)