Warning: This method has been deprecated. Use wpdb::prepare() instead.
wpdb::_weak_escape( string $string )
Do not use, deprecated.
Contents
Description Description
Use esc_sql() or wpdb::prepare() instead.
See also See also
Parameters Parameters
- $string
-
(string) (Required)
Return Return
(string)
Source Source
File: wp-includes/wp-db.php
function _weak_escape( $string ) { if ( func_num_args() === 1 && function_exists( '_deprecated_function' ) ) { _deprecated_function( __METHOD__, '3.6.0', 'wpdb::prepare() or esc_sql()' ); } return addslashes( $string ); }
Expand full source code Collapse full source code View on Trac
Changelog Changelog
Version | Description |
---|---|
3.6.0 | Use wpdb::prepare() |
2.8.0 | Introduced. |