It falls back to funky escaping that causes problems and is not reversible, so temporarily disabling.
git-svn-id: http://svn.automattic.com/wordpress/trunk@2737 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
086e5b4c29
commit
60327b0ca2
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue