Unquoted SQL.
git-svn-id: https://develop.svn.wordpress.org/trunk@1232 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
eb6bce2012
commit
0f635b45df
@ -208,7 +208,7 @@ function has_meta($postid) {
|
||||
return $wpdb->get_results("
|
||||
SELECT meta_key, meta_value, meta_id, post_id
|
||||
FROM $tablepostmeta
|
||||
WHERE post_id = $postid
|
||||
WHERE post_id = '$postid'
|
||||
ORDER BY meta_key,meta_id",ARRAY_A);
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user