It falls back to funky escaping that causes problems and is not reversible, so temporarily disabling.

git-svn-id: https://develop.svn.wordpress.org/trunk@2737 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Matt Mullenweg 2005-07-26 20:11:41 +00:00
parent 2c7be48b87
commit 7af1145a9d
1 changed files with 1 additions and 0 deletions

View File

@ -77,6 +77,7 @@ class wpdb {
// Format a string correctly for safe insert under all PHP conditions
function escape($string) {
return addslashes( $string ); // Disable rest for now, causing problems
if( !$this->dbh || version_compare( phpversion(), '4.3.0' ) == '-1' )
return mysql_escape_string( $string );
else