Skip to content

Commit

Permalink
Remove another like_escape
Browse files Browse the repository at this point in the history
  • Loading branch information
Luke Carbis committed Jul 10, 2014
1 parent 5ee4b84 commit f46151f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/db/wpdb.php
Expand Up @@ -334,7 +334,7 @@ private function parse_rule( $db_col, $operator, $value ) {

// Handle `like` operator
if ( 'like' === $operator ) {
$value = like_escape( trim( $value, '%' ) );
$value = $wpdb->esc_like( trim( $value, '%' ) );

return $wpdb->prepare( "$db_col LIKE %s", "%{$value}%" ); // db call okay, db cache okay
} // Handle `in`/`not_in` operators
Expand Down

1 comment on commit f46151f

@fjarrett
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@lukecarbis Will this now mean Stream requires WordPress 4.0 to run? Ideally we could stay backwards compat all the way back to 3.7.

Please sign in to comment.