Reply To: Pagination on Members broken after update
Adding this code above $this->$pag_links to bp-members-template solved the issue for us..
/**
* Defaults to an empty array to make sure paginate_links()
* won't add the $page_arg to the links which would break
* pagination in case javascript is disabled.
*/
$add_args = array();
if ( ! empty( $search_terms ) ) {
$add_args['s'] = urlencode( $search_terms );
}
$this->pag_links = paginate_links( array(
'base' => add_query_arg( $pag_args, $base ),
'format' => '',
'total' => ceil( (int) $this->total_member_count / (int) $this->pag_num ),
'current' => (int) $this->pag_page,
'prev_text' => _x( '←', 'Member pagination previous text', 'buddypress' ),
'next_text' => _x( '→', 'Member pagination next text', 'buddypress' ),
'mid_size' => 1,
'add_args' => $add_args,
) );