Changeset 8430 for trunk/src/bp-xprofile/bp-xprofile-classes.php
- Timestamp:
- 05/19/2014 07:28:36 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-xprofile/bp-xprofile-classes.php
r8347 r8430 151 151 $where_sql = ''; 152 152 153 if ( ! empty( $profile_group_id ) )153 if ( ! empty( $profile_group_id ) ) { 154 154 $where_sql = $wpdb->prepare( 'WHERE g.id = %d', $profile_group_id ); 155 elseif ( $exclude_groups ) 156 $where_sql = $wpdb->prepare( "WHERE g.id NOT IN ({$exclude_groups})"); 155 } else if ( $exclude_groups ) { 156 $exclude_groups = join( ',', wp_parse_id_list( $exclude_groups ) ); 157 $where_sql = "WHERE g.id NOT IN ({$exclude_groups})"; 158 } 157 159 158 160 if ( ! empty( $hide_empty_groups ) ) {
Note: See TracChangeset
for help on using the changeset viewer.