Skip to:
Content

BuddyPress.org

Ticket #5271: 5271.02.patch

File 5271.02.patch, 594 bytes (added by boonebgorges, 11 years ago)
  • bp-core/bp-core-classes.php

    diff --git bp-core/bp-core-classes.php bp-core/bp-core-classes.php
    index beafe77..8bcfe72 100644
    class BP_User_Query { 
    170170                        // If the user_ids param is present, we skip the query
    171171                        if ( false !== $this->query_vars['user_ids'] ) {
    172172                                $this->user_ids = wp_parse_id_list( $this->query_vars['user_ids'] );
     173
     174                                // Manually set the total_users count for
     175                                // pagination
     176                                $this->total_users = count( $this->user_ids );
    173177                        } else {
    174178                                $this->prepare_user_ids_query();
    175179                                $this->do_user_ids_query();