Skip to:
Content

BuddyPress.org

Changeset 8306


Ignore:
Timestamp:
04/21/2014 08:55:47 PM (10 years ago)
Author:
r-a-y
Message:

XProfile: Check for activity component before using bp_activity_get().

Currently, the bp_xprofile_updated_profile_activity() function does not
check if the activity component is active before using bp_activity_get().

This can potentially cause a fatal error when updating one's profile.

Fixes #5571 (trunk)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-xprofile/bp-xprofile-activity.php

    r8218 r8306  
    236236    }
    237237
     238    if ( ! bp_is_active( 'activity' ) ) {
     239        return false;
     240    }
     241
    238242    // Don't post if there have been no changes, or if the changes are
    239243    // related solely to non-public fields
Note: See TracChangeset for help on using the changeset viewer.