Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
10/15/2020 06:33:17 PM (4 years ago)
Author:
imath
Message:

Members: stop mirroring user last_activity data to user metadata

The primary storage location for user last_activity is the activity table. For backward compatibility reasons, we used to mirror that data into user metadata.

Backward compatibility user last_activity metadata mirroring is now only done if the legacy user query is enabled. This can be achieved by forcing the bp_use_legacy_user_query filter to return true.

Props boonebgorges, r-a-y

Fixes #7882

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/testcases/members/functions.php

    r12679 r12754  
    387387        // Setup parameters to assert to be the same
    388388        $expected = $time;
    389         $found    = bp_get_user_meta( $user, 'last_activity', true );
     389        $found    = bp_get_user_last_activity( $user );
    390390
    391391        $this->assertSame( $expected, $found );
Note: See TracChangeset for help on using the changeset viewer.