mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-12 12:50:28 +00:00
Only list field types that are not strings. see #7171
git-svn-id: https://develop.svn.wordpress.org/trunk@10726 602fd350-edb4-49c9-b593-d223f7449a82
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