Changeset 5171
- Timestamp:
- 04/02/07 19:40:15 (2 years ago)
- Files:
-
- trunk/wp-includes/query.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/wp-includes/query.php
r5149 r5171 917 917 $tables = ", $wpdb->post2cat, $wpdb->categories"; 918 918 $join = " LEFT JOIN $wpdb->post2cat ON ($wpdb->posts.ID = $wpdb->post2cat.post_id) LEFT JOIN $wpdb->categories ON ($wpdb->post2cat.category_id = $wpdb->categories.cat_ID) "; 919 $whichcat = " AND category_id IN ({$q['cat']} ";919 $whichcat = " AND category_id IN ({$q['cat']}, "; 920 920 $whichcat .= get_category_children($q['cat'], '', ', '); 921 921 $whichcat = substr($whichcat, 0, -2);
