Stop quotes being incorrectly added to prepare placeholders in wpdb::_insert_replace_helper(). Fixes #19016.

git-svn-id: https://develop.svn.wordpress.org/trunk@19692 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Jon Cave 2012-01-05 21:29:57 +00:00
parent 8d60951aa4
commit d43d6e5765
1 changed files with 1 additions and 1 deletions

View File

@ -1212,7 +1212,7 @@ class wpdb {
$form = '%s'; $form = '%s';
$formatted_fields[] = $form; $formatted_fields[] = $form;
} }
$sql = "{$type} INTO `$table` (`" . implode( '`,`', $fields ) . "`) VALUES ('" . implode( "','", $formatted_fields ) . "')"; $sql = "{$type} INTO `$table` (`" . implode( '`,`', $fields ) . "`) VALUES (" . implode( ",", $formatted_fields ) . ")";
return $this->query( $this->prepare( $sql, $data ) ); return $this->query( $this->prepare( $sql, $data ) );
} }