Only list field types that are not strings. see #7171
git-svn-id: http://svn.automattic.com/wordpress/trunk@10726 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -718,7 +718,6 @@ class wpdb {
|
||||
$formatted_fields[] = $form;
|
||||
}
|
||||
$sql = "INSERT INTO $table (`" . implode( '`,`', $fields ) . "`) VALUES ('" . implode( "','", $formatted_fields ) . "')";
|
||||
error_log($sql);
|
||||
return $this->query( $this->prepare( $sql, $data) );
|
||||
}
|
||||
|
||||
@@ -764,7 +763,6 @@ class wpdb {
|
||||
}
|
||||
|
||||
$sql = "UPDATE $table SET " . implode( ', ', $bits ) . ' WHERE ' . implode( ' AND ', $wheres );
|
||||
error_log($sql);
|
||||
return $this->query( $this->prepare( $sql, array_merge(array_values($data), array_values($where))) );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user