Changeset 8572 for trunk/wp-includes/query.php
- Timestamp:
- 08/06/2008 08:31:54 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/query.php
r8555 r8572 215 215 $page = (array) $page; 216 216 217 217 if ( in_array( $page_obj->ID, $page ) ) 218 218 return true; 219 219 elseif ( in_array( $page_obj->post_title, $page ) ) … … 991 991 $n = ($q['exact']) ? '' : '%'; 992 992 $searchand = ''; 993 foreach( (array)$q['search_terms'] as $term) {993 foreach( (array) $q['search_terms'] as $term) { 994 994 $term = addslashes_gpc($term); 995 995 $search .= "{$searchand}(($wpdb->posts.post_title LIKE '{$n}{$term}{$n}') OR ($wpdb->posts.post_content LIKE '{$n}{$term}{$n}'))"; … … 1016 1016 $q['cat'] = ''; 1017 1017 $req_cats = array(); 1018 foreach ( $cat_array as $cat ) {1018 foreach ( (array) $cat_array as $cat ) { 1019 1019 $cat = intval($cat); 1020 1020 $req_cats[] = $cat;
Note: See TracChangeset
for help on using the changeset viewer.