Making WordPress.org

Changeset 494


Ignore:
Timestamp:
04/01/2014 10:37:52 PM (13 years ago)
Author:
johnjamesjacoby
Message:

BuddyPress.org: In bbPress.org tools, remove user description when they are being blocked. Props netweb. Fixes ​#BB2572.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/buddypress.org/public_html/wp-content/plugins/bbpress-org/tools.php

    r479 r494  
    105105        }
    106106
     107        // Delete the users description from their profile
     108        $user_description = get_user_meta( $user_id, 'description');
     109        if ( !empty( $user_description ) ) {
     110                delete_user_meta( $user_id, 'description' );
     111        }
     112
    107113        // Block the user
    108114        bbp_set_user_role( $user_id, bbp_get_blocked_role() );
Note: See TracChangeset for help on using the changeset viewer.