WordPress.org

Make WordPress Core

Changeset 5171


Ignore:
Timestamp:
04/02/07 19:40:15 (8 years ago)
Author:
markjaquith
Message:

Fix category_name=foo WP_Queries. fixes #4069

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/query.php

    r5149 r5171  
    917917            $tables = ", $wpdb->post2cat, $wpdb->categories"; 
    918918            $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']}, "; 
    920920            $whichcat .= get_category_children($q['cat'], '', ', '); 
    921921            $whichcat = substr($whichcat, 0, -2); 
Note: See TracChangeset for help on using the changeset viewer.