Changeset 4450
- Timestamp:
- 11/07/2006 11:43:59 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/query.php
r4426 r4450 584 584 $join = ''; 585 585 $search = ''; 586 $groupby = ''; 586 587 587 588 if ( !isset($q['post_type']) ) … … 802 803 } 803 804 $whichcat = $in_cats . $out_cats; 804 $ distinct = 'DISTINCT';805 $groupby = "{$wpdb->posts}.ID"; 805 806 } 806 807 807 808 // Category stuff for nice URLs 808 809 global $cache_categories;810 809 if ('' != $q['category_name']) { 811 810 $reqcat = get_category_by_path($q['category_name']); … … 837 836 $whichcat = substr($whichcat, 0, -2); 838 837 $whichcat .= ")"; 839 $ distinct = 'DISTINCT';838 $groupby = "{$wpdb->posts}.ID"; 840 839 } 841 840 … … 976 975 // manipulate paging queries should use these hooks. 977 976 $where = apply_filters('posts_where_paged', $where); 978 $groupby = '';979 977 $groupby = apply_filters('posts_groupby', $groupby); 980 978 if ( ! empty($groupby) )
Note: See TracChangeset
for help on using the changeset viewer.