wpdb::escape_by_ref( string $string )
Escapes content by reference for insertion into the database, for security
Description Description
Parameters Parameters
- $string
-
(string) (Required) to escape
Source Source
File: wp-includes/wp-db.php
public function escape_by_ref( &$string ) {
if ( ! is_float( $string ) ) {
$string = $this->_real_escape( $string );
}
}
Expand full source code Collapse full source code View on Trac
Changelog Changelog
| Version | Description |
|---|---|
| 2.3.0 | Introduced. |