Changeset 28720
- Timestamp:
- 06/10/2014 02:19:30 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/comment.php
r28712 r28720 484 484 global $wpdb; 485 485 486 $like = '%' . $wpdb->esc_like( $string ) . '%'; 487 486 488 $searches = array(); 487 foreach ( $cols as $col ) 488 $searches[] = $wpdb->prepare( "$col LIKE %s", $wpdb->esc_like( $string ) ); 489 foreach ( $cols as $col ) { 490 $searches[] = $wpdb->prepare( "$col LIKE %s", $like ); 491 } 489 492 490 493 return ' AND (' . implode(' OR ', $searches) . ')';
Note: See TracChangeset
for help on using the changeset viewer.