From 596db96326c129ef1d5aacca7e0b1bdebb21d0c3 Mon Sep 17 00:00:00 2001 From: markjaquith Date: Sat, 13 Oct 2007 00:45:34 +0000 Subject: [PATCH] Oops, within the class here. git-svn-id: http://svn.automattic.com/wordpress/trunk@6236 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/wp-db.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/wp-db.php b/wp-includes/wp-db.php index c2de5d1e07..67fa1b8c14 100644 --- a/wp-includes/wp-db.php +++ b/wp-includes/wp-db.php @@ -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"); }