wpdb::_escape( string|array $data )
Escape data. Works on arrays.
Description Description
Parameters Parameters
- $data
-
(string|array) (Required)
Return Return
(string|array) escaped
Source Source
File: wp-includes/wp-db.php
public function _escape( $data ) { if ( is_array( $data ) ) { foreach ( $data as $k => $v ) { if ( is_array( $v ) ) { $data[ $k ] = $this->_escape( $v ); } else { $data[ $k ] = $this->_real_escape( $v ); } } } else { $data = $this->_real_escape( $data ); } return $data; }
Expand full source code Collapse full source code View on Trac
Changelog Changelog
Version | Description |
---|---|
2.8.0 | Introduced. |