mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 01:27:36 +01:00
Unquoted SQL.
git-svn-id: http://svn.automattic.com/wordpress/trunk@1232 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
348dbc769b
commit
0ef9bfe6db
@ -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