Use of depracated function call like_escape
-
I have just had a conflict when searching for a short term ‘eis ‘ in the wordpress search, this
Notice: like_escape is deprecated since version 4.0! Use wpdb::esc_like() instead.
so I replaced :
$search_term = like_escape( esc_sql( $search_term ) );
with :
$search_term = $wpdb->esc_like( esc_sql( $search_term ) );
on line 874 of controllers/controller-frontend.php
Please can you update the code to use this new method (with fallbacks for older versions of WP).
https://make.www.ads-software.com/core/2014/06/20/like_escape-is-deprecated-in-wordpress-4-0/
Thanks,
Andrew
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Use of depracated function call like_escape’ is closed to new replies.