Uses
Uses | Description |
---|---|
wp-includes/wp-db.php: wpdb::_real_escape() | Real escape, using mysqli_real_escape_string() or mysql_real_escape_string(). |
Escapes content by reference for insertion into the database, for security.
(string) (Required) String to escape.
File: wp-includes/wp-db.php
public function escape_by_ref( &$string ) { if ( ! is_float( $string ) ) { $string = $this->_real_escape( $string ); } }
Version | Description |
---|---|
2.3.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wpdb/escape_by_ref