Changeset 5171 for trunk/wp-includes/query.php
- Timestamp:
- 04/02/2007 07:40:15 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/query.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
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);
Note: See TracChangeset
for help on using the changeset viewer.