Skip to:
Content

Changeset 6500


Ignore:
Timestamp:
11/09/12 14:14:18 (17 months ago)
Author:
djpaul
Message:

Remove unneeded prepare() calls from the group directory screen. See #4654

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-groups/bp-groups-classes.php

    r6466 r6500  
    672672            $hidden_sql = "WHERE status != 'hidden'"; 
    673673 
    674         return $wpdb->get_var( $wpdb->prepare( "SELECT COUNT(id) FROM {$bp->groups->table_name} {$hidden_sql}" ) ); 
     674        return $wpdb->get_var( "SELECT COUNT(id) FROM {$bp->groups->table_name} {$hidden_sql}" ); 
    675675    } 
    676676 
     
    12201220        $exclude_admins_sql = ''; 
    12211221        if ( !empty( $exclude_admins_mods ) ) 
    1222             $exclude_admins_sql = $wpdb->prepare( "AND is_admin = 0 AND is_mod = 0" ); 
     1222            $exclude_admins_sql = "AND is_admin = 0 AND is_mod = 0"; 
    12231223 
    12241224        $banned_sql = ''; 
    12251225        if ( !empty( $exclude_banned ) ) 
    1226             $banned_sql = $wpdb->prepare( " AND is_banned = 0" ); 
     1226            $banned_sql = " AND is_banned = 0"; 
    12271227 
    12281228        $exclude_sql = ''; 
    12291229        if ( !empty( $exclude ) ) 
    1230             $exclude_sql = $wpdb->prepare( " AND m.user_id NOT IN ({$exclude})" ); 
     1230            $exclude_sql = " AND m.user_id NOT IN ({$exclude})"; 
    12311231 
    12321232        if ( bp_is_active( 'xprofile' ) ) 
Note: See TracChangeset for help on using the changeset viewer.