From 0f635b45df9efdcb68074b5b8fa80917f0a6175d Mon Sep 17 00:00:00 2001 From: Matt Mullenweg Date: Wed, 5 May 2004 08:18:30 +0000 Subject: [PATCH] Unquoted SQL. git-svn-id: https://develop.svn.wordpress.org/trunk@1232 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/admin-functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-admin/admin-functions.php b/wp-admin/admin-functions.php index 3eb3d5cd17..e6f549ff15 100644 --- a/wp-admin/admin-functions.php +++ b/wp-admin/admin-functions.php @@ -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); }