Changeset 4866 for trunk/wp-includes/query.php
- Timestamp:
- 02/05/2007 09:29:39 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/query.php
r4754 r4866 795 795 $out_cats = substr($out_cats, 0, -2); 796 796 if ( strlen($in_cats) > 0 ) 797 $in_cats = " AND category_id IN ($in_cats)";797 $in_cats = " AND $wpdb->post2cat.category_id IN ($in_cats)"; 798 798 if ( strlen($out_cats) > 0 ) { 799 $ids = $wpdb->get_col("SELECT post_id FROM $wpdb->post2cat WHERE category_id IN ($out_cats)");799 $ids = $wpdb->get_col("SELECT post_id FROM $wpdb->post2cat WHERE $wpdb->post2cat.category_id IN ($out_cats)"); 800 800 if ( is_array($ids) && count($ids > 0) ) { 801 801 foreach ( $ids as $id ) … … 804 804 } 805 805 if ( strlen($out_posts) > 0 ) 806 $out_cats = " AND ID NOT IN ($out_posts)";806 $out_cats = " AND $wpdb->posts.ID NOT IN ($out_posts)"; 807 807 else 808 808 $out_cats = '';
Note: See TracChangeset
for help on using the changeset viewer.