Add like_escape() to some queries. fixes #15764

git-svn-id: https://develop.svn.wordpress.org/trunk@16999 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2010-12-16 14:22:41 +00:00
parent f75e632dd0
commit c1e26ef82c
7 changed files with 10 additions and 10 deletions
+1 -1
View File
@@ -345,7 +345,7 @@ class WP_Comment_Query {
* @return string
*/
function get_search_sql( $string, $cols ) {
$string = esc_sql( $string );
$string = esc_sql( like_escape( $string ) );
$searches = array();
foreach ( $cols as $col )