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:
Peter Westwood 2007-12-09 11:28:57 +00:00
parent fb05263f15
commit 23b7e0b2c4
1 changed files with 4 additions and 1 deletions

View File

@ -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 );
*/
}
/**