Changeset 2684
- Timestamp:
- 07/02/05 23:31:43 (4 years ago)
- Files:
-
- trunk/wp-includes/wp-db.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/wp-includes/wp-db.php
r2598 r2684 78 78 79 79 function escape($str) { 80 return addslashes($str); 80 if( !$this->dbh || version_compare( phpversion(), '4.3.0' ) == '-1' ) 81 return mysql_escape_string( $string ); 82 else 83 return mysql_real_escape_string( $string, $this->dbh ); 81 84 } 82 85
