Skip to:
Content

BuddyPress.org

Changeset 9179


Ignore:
Timestamp:
11/25/2014 04:50:01 PM (10 years ago)
Author:
boonebgorges
Message:

Use bp_esc_like() in BP_XProfile_Query.

$wpdb->esc_like was introduced in WP 4.0.0, and our wrapper provides backward
compatibility for earlier versions of WordPress.

See #5839.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-xprofile/bp-xprofile-classes.php

    r9178 r9179  
    37173717                case 'LIKE' :
    37183718                case 'NOT LIKE' :
    3719                     $field_value = '%' . $wpdb->esc_like( $field_value ) . '%';
     3719                    $field_value = '%' . bp_esc_like( $field_value ) . '%';
    37203720                    $where = $wpdb->prepare( '%s', $field_value );
    37213721                    break;
Note: See TracChangeset for help on using the changeset viewer.