From 23b7e0b2c4af7efa782ce6c7eb0e85fd7a1cbb74 Mon Sep 17 00:00:00 2001 From: Peter Westwood Date: Sun, 9 Dec 2007 11:28:57 +0000 Subject: [PATCH] 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 --- wp-includes/wp-db.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/wp-includes/wp-db.php b/wp-includes/wp-db.php index 4aaf6b5867..a6b7707f4b 100644 --- a/wp-includes/wp-db.php +++ b/wp-includes/wp-db.php @@ -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 ); + */ } /**