Changeset 6026 for trunk/wp-includes/query.php
- Timestamp:
- 09/03/2007 11:32:58 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/query.php (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/query.php
r6025 r6026 276 276 277 277 /* 278 * Comments loop. 279 */ 280 281 function have_comments() { 282 global $wp_query; 283 return $wp_query->have_comments(); 284 } 285 286 function the_comment() { 287 global $wp_query; 288 return $wp_query->the_comment(); 289 } 278 * Comments loop. 279 */ 280 281 function have_comments() { 282 global $wp_query; 283 return $wp_query->have_comments(); 284 } 285 286 function the_comment() { 287 global $wp_query; 288 return $wp_query->the_comment(); 289 } 290 290 291 291 /* … … 566 566 } else { 567 567 $qv['category__in'] = array_map('intval', $qv['category__in']); 568 $this->is_category = true; 568 $this->is_category = true; 569 569 } 570 570 … … 579 579 } else { 580 580 $qv['category__and'] = array_map('intval', $qv['category__and']); 581 $this->is_category = true; 581 $this->is_category = true; 582 582 } 583 583 … … 593 593 } else { 594 594 $qv['tag__in'] = array_map('intval', $qv['tag__in']); 595 $this->is_tag = true; 595 $this->is_tag = true; 596 596 } 597 597 … … 606 606 } else { 607 607 $qv['tag__and'] = array_map('intval', $qv['tag__and']); 608 $this->is_category = true; 608 $this->is_category = true; 609 609 } 610 610 … … 613 613 } else { 614 614 $qv['tag_slug__in'] = array_map('sanitize_title', $qv['tag_slug__in']); 615 $this->is_tag = true; 615 $this->is_tag = true; 616 616 } 617 617 … … 620 620 } else { 621 621 $qv['tag_slug__and'] = array_map('sanitize_title', $qv['tag_slug__and']); 622 $this->is_tag = true; 622 $this->is_tag = true; 623 623 } 624 624 … … 903 903 $searchand = ' AND '; 904 904 } 905 $term = addslashes_gpc($q['s']); 905 $term = addslashes_gpc($q['s']); 906 906 if (!$q['sentence'] && count($q['search_terms']) > 1 && $q['search_terms'][0] != $q['s'] ) 907 907 $search .= " OR (post_title LIKE '{$n}{$term}{$n}') OR (post_content LIKE '{$n}{$term}{$n}')"; … … 1225 1225 1226 1226 // Apply post-paging filters on where and join. Only plugins that 1227 // manipulate paging queries should use these hooks. 1227 // manipulate paging queries should use these hooks. 1228 1228 1229 1229 // Announce current selection parameters. For use by caching plugins.
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)