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:
parent
94c4c00308
commit
1140390e17
@ -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");
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user