Comment out the code that can't run so as to not confuse people.
git-svn-id: https://develop.svn.wordpress.org/trunk@6366 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
fb05263f15
commit
23b7e0b2c4
@ -128,11 +128,14 @@ class wpdb {
|
||||
* @return string query safe string
|
||||
*/
|
||||
function escape($string) {
|
||||
return addslashes( $string ); // Disable rest for now, causing problems
|
||||
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
|
||||
return mysql_real_escape_string( $string, $this->dbh );
|
||||
*/
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user