wpdb::escape_by_ref( string $data )
Escapes content by reference for insertion into the database, for security.
Parameters
-
$data
string Required -
String to escape.
Source
File: wp-includes/class-wpdb.php
.
View all references
public function escape_by_ref( &$data ) {
if ( ! is_float( $data ) ) {
$data = $this->_real_escape( $data );
}
}
Changelog
Version | Description |
---|---|
2.3.0 | Introduced. |