Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
03/06/2014 07:58:49 PM (10 years ago)
Author:
boonebgorges
Message:

Replace internals of BP_Group_Membership_Requests_Template with BP_Group_Member_Query

This brings us more in line with the Invites template functions, and is another
step toward centralizing all of our group queries.

The change also allows for true pagination. This changeset also adds the 'page'
parameter to the stack.

See #5440

Props dcavins

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/testcases/groups/template.php

    r8065 r8069  
    548548        for ( $i = 1; $i < 15; $i++ ) {
    549549            $users[ $i ] = $this->create_user( array(
    550                 'last_activity' => gmdate( 'Y-m-d H:i:s', time() - $i ),
     550                'last_activity' => gmdate( 'Y-m-d H:i:s', time() - ( 100 - $i ) ),
    551551            ) );
    552552
    553553            $memberships[ $i ] = $this->add_user_to_group( $users[ $i ], $g, array(
    554                 'date_modified' => gmdate( 'Y-m-d H:i:s', time() - $i ),
     554                // this date_modified ensures that order will match
     555                // id order. necessary due to a quirk in the legacy
     556                // implementation
     557                'date_modified' => gmdate( 'Y-m-d H:i:s', time() - ( 100 - $i ) ),
    555558                'is_confirmed' => 0,
    556559                'inviter_id' => 0,
Note: See TracChangeset for help on using the changeset viewer.