Uses
Uses | Description |
---|---|
wp-includes/functions.php: _deprecated_function() | Mark a function as deprecated and inform when it has been used. |
This method has been deprecated. Use wpdb::prepare() instead.
Do not use, deprecated.
Use esc_sql() or wpdb::prepare() instead.
(string) (Required)
(string)
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 ); }
Version | Description |
---|---|
3.6.0 | Use wpdb::prepare() |
2.8.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wpdb/_weak_escape