Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
03/22/2024 08:40:31 AM (2 years ago)
Author:
imath
Message:

Remove the tool to repair the members last activity tracker

In version 2.0 we decided to stop using the last_activity user meta in favor of tracing this information as an activity type having the same name. Meaning we stopped inserting this user meta for new members or any member of a community if the first BuddyPress installed version is upper than 1.9.

When upgrading from a version < 2.0 to the 2.0 version, the bp_last_activity_migrate() function is there to use the user meta to populate the activity table with corresponding last_activity activities.

We also created a repair tool in case the above upgrade task failed. This tool became obsolete but we forgot to remove it. It's now very problematic if an Admin user uses this tool as it will delete all last_activity activities but will fail at finding users having the last_activity meta.

To stop the spread, we decided to remove this tool during a minor release (12.4.0) as we felt it was an emergency.

Props vapvarun

See #9096 (trunk)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-core/deprecated/12.0.php

    r13503 r13775  
    16211621        return apply_filters( 'bp_core_get_all_posts_for_user', array( $all_posts ), '12.0.0' );
    16221622}
     1623
     1624/**
     1625 * Repair user last_activity data.
     1626 *
     1627 * Re-runs the migration from usermeta introduced in BP 2.0.
     1628 *
     1629 * @since 2.0.0
     1630 * @deprecated 12.4.0
     1631 */
     1632function bp_admin_repair_last_activity() {
     1633        _deprecated_function( __FUNCTION__, '12.4.0' );
     1634        return array();
     1635}
Note: See TracChangeset for help on using the changeset viewer.