Oops, within the class here.

git-svn-id: http://svn.automattic.com/wordpress/trunk@6236 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
markjaquith 2007-10-13 00:45:34 +00:00
parent 6dea91b30b
commit 596db96326

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");
}