Changeset 8541 for trunk/src/bp-notifications/bp-notifications-classes.php
- Timestamp:
- 06/19/2014 01:36:57 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-notifications/bp-notifications-classes.php
r8176 r8541 328 328 // search_terms 329 329 if ( ! empty( $args['search_terms'] ) ) { 330 $search_terms = like_escape( esc_sql( $args['search_terms'] ) );331 $where_conditions['search_terms'] = "( component_name LIKE '%%$search_terms%%' OR component_action LIKE '%%$search_terms%%' )";330 $search_terms_like = '%' . bp_esc_like( $args['search_terms'] ) . '%'; 331 $where_conditions['search_terms'] = $wpdb->prepare( "( component_name LIKE %s OR component_action LIKE %s )", $search_terms_like, $search_terms_like ); 332 332 } 333 333
Note: See TracChangeset
for help on using the changeset viewer.