diff --git a/wp-includes/wp-db.php b/wp-includes/wp-db.php index 23deef804..071be8272 100644 --- a/wp-includes/wp-db.php +++ b/wp-includes/wp-db.php @@ -93,8 +93,8 @@ class wpdb { $EZSQL_ERROR[] = array ('query' => $this->last_query, 'error_str' => $str); - $str = wp_specialchars($str, 1); - $query = wp_specialchars($this->last_query, 1); + $str = htmlspecialchars($str, 1); + $query = htmlspecialchars($this->last_query, 1); // Is error output turned on or not.. if ( $this->show_errors ) { // If there is an error then take note of it