Oops, within the class here.

git-svn-id: https://develop.svn.wordpress.org/trunk@6236 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Mark Jaquith 2007-10-13 00:45:34 +00:00
parent 94c4c00308
commit 1140390e17
1 changed files with 1 additions and 1 deletions

View File

@ -275,7 +275,7 @@ class wpdb {
$bits = array();
foreach ( array_keys($data) as $k )
$bits[] = "`$k`='$data[$k]'";
$where_val = $wpdb->escape($where_val);
$where_val = $this->escape($where_val);
return $this->query("UPDATE $table SET ".implode(', ',$bits)." WHERE $where_col = '$where_val' LIMIT 1");
}