Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
08/12/2014 09:31:40 PM (10 years ago)
Author:
imath
Message:

Do not add "new_member" activities if xProfile component is disabled

In Members component, bp_core_new_user_activity() automatically creates an "xProfile" activity item ("new_member" type) as soon as a user account is activated. If this happens when the xProfile component is disabled, the proper activity action callback is not available, as a result an empty string is saved in the action field of the activity table. On front-end and back-end, these mini activities are displayed without any actions.

This is a temporary fix for 2.1, we will think about something more substantial for 2.2.

See #5807

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-members/bp-members-functions.php

    r8654 r8818  
    18511851 */
    18521852function bp_core_new_user_activity( $user ) {
    1853     if ( empty( $user ) || ! bp_is_active( 'activity' ) ) {
     1853    if ( empty( $user ) || ! bp_is_active( 'activity' ) || ! bp_is_active( 'xprofile' ) ) {
    18541854        return false;
    18551855    }
Note: See TracChangeset for help on using the changeset viewer.