WordPress.org

Make WordPress Core


Ignore:
Timestamp:
08/26/2008 11:57:48 PM (13 years ago)
Author:
ryan
Message:

wpdb::has_cap() from mdawaffe. fixes #7609

File:
1 edited

Legend:

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

    r8738 r8740  
    10471047
    10481048        if ( !empty($q['category__not_in']) ) {
    1049             if ( $wpdb->supports_subqueries() ) {
     1049            if ( $wpdb->has_cap( 'subqueries' ) ) {
    10501050                $cat_string = "'" . implode("', '", $q['category__not_in']) . "'";
    10511051                $whichcat .= " AND $wpdb->posts.ID NOT IN (SELECT $wpdb->term_relationships.object_id FROM $wpdb->term_relationships WHERE $wpdb->term_relationships.term_taxonomy_id IN ($cat_string) )";
Note: See TracChangeset for help on using the changeset viewer.