Changeset 16168 for trunk/wp-includes/class-wp-object-query.php
- Timestamp:
- 11/03/2010 07:02:42 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/class-wp-object-query.php
r16143 r16168 234 234 235 235 $searches = array(); 236 foreach ( $cols as $col ) 237 $searches[] = "$col LIKE '%$string%'"; 236 foreach ( $cols as $col ) { 237 if ( 'ID' == $col ) 238 $searches[] = "$col = '$string'"; 239 else 240 $searches[] = "$col LIKE '$string%'"; 241 } 238 242 239 243 return ' AND (' . implode(' OR ', $searches) . ')';
Note: See TracChangeset
for help on using the changeset viewer.