Uses
Uses | Description |
---|---|
wp-includes/functions.php: _deprecated_function() | Mark a function as deprecated and inform when it has been used. |
This function has been deprecated. Use wpdb::esc_like() instead.
Formerly used to escape strings before searching the DB. It was poorly documented and never worked as described.
(string) (Required) The text to be escaped.
(string) text, safe for inclusion in LIKE query.
File: wp-includes/deprecated.php
function like_escape($text) { _deprecated_function( __FUNCTION__, '4.0.0', 'wpdb::esc_like()' ); return str_replace( array( "%", "_" ), array( "\\%", "\\_" ), $text ); }
Version | Description |
---|---|
4.0.0 | Use wpdb::esc_like() |
2.5.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/like_escape