wpdb::_weak_escape()publicWP 2.8.0

Deprecated from version 3.6.0. It is no longer supported and can be removed in future releases. Use wpdb::prepare() instead.

Do not use, deprecated.

Use esc_sql() or wpdb::prepare() instead.

Method of the class: wpdb{}

No Hooks.

Return

String.

Usage

global $wpdb;
$wpdb->_weak_escape( $string );
$string(string) (required)
-

Notes

Changelog

Since 2.8.0 Introduced.
Deprecated since 3.6.0 Use wpdb::prepare()

wpdb::_weak_escape() code WP 6.1.1

public 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 );
}