Skip to:
Content

Changeset 8305


Ignore:
Timestamp:
04/21/14 20:54:52 (17 months 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.

See #5571 (2.0-branch)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.0/bp-xprofile/bp-xprofile-activity.php

    r8218 r8305  
    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.