Changeset 24758 for trunk/wp-includes/wp-db.php
- Timestamp:
- 07/20/2013 08:16:21 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/wp-db.php
r24724 r24758 877 877 */ 878 878 function _real_escape( $string ) { 879 return mysql_real_escape_string( $string, $this->dbh ); 879 if ( $this->dbh ) 880 return mysql_real_escape_string( $string, $this->dbh ); 881 882 $class = get_class( $this ); 883 _doing_it_wrong( $class, "$class must set a database connection for use with escaping.", E_USER_NOTICE ); 884 return addslashes( $string ); 880 885 } 881 886
Note: See TracChangeset
for help on using the changeset viewer.