Skip to:
Content

bbPress.org

Changeset 4526


Ignore:
Timestamp:
11/26/2012 05:57:18 PM (9 years ago)
Author:
johnjamesjacoby
Message:

Updater:

  • Move bbPress 1.x role removal out of updater and into BuddyPress's repair tool.
Location:
trunk/includes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/includes/admin/tools.php

    r4451 r4526  
    380380        update_option( '_bbp_group_forums_root_id', $posts[0]->ID );
    381381    }
     382
     383    // Remove old bbPress 1.1 roles (BuddyPress)
     384    remove_role( 'member'    );
     385    remove_role( 'inactive'  );
     386    remove_role( 'blocked'   );
     387    remove_role( 'moderator' );
     388    remove_role( 'keymaster' );
    382389
    383390    // Complete results
  • trunk/includes/core/update.php

    r4508 r4526  
    248248    if ( $raw_db_version < 220 ) {
    249249
    250         // Remove bbPress 1.1 roles (BuddyPress)
    251         remove_role( 'member'    );
    252         remove_role( 'inactive'  );
    253         remove_role( 'blocked'   );
    254         remove_role( 'moderator' );
    255         remove_role( 'keymaster' );
    256 
    257250        // Refresh capabilities
    258251        bbp_remove_caps();
Note: See TracChangeset for help on using the changeset viewer.