Skip to:
Content

bbPress.org


Ignore:
Timestamp:
06/14/2014 10:42:52 PM (8 years ago)
Author:
johnjamesjacoby
Message:

De-deprecate bbp_remove_roles() and use it in: bbp_admin_reset_handler(), bbp_do_uninstall(), and bbp_version_updater(). Fixes bug where old bbPress role data could still exist in wp_user_roles`. See #2065. Fixes #2580.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/includes/core/update.php

    r5133 r5401  
    269269    if ( $raw_db_version < 220 ) {
    270270
    271         // Remove the Moderator role from the database
    272         remove_role( bbp_get_moderator_role() );
    273 
    274         // Remove the Participant role from the database
    275         remove_role( bbp_get_participant_role() );
     271        // Remove any old bbPress roles
     272        bbp_remove_roles();
    276273
    277274        // Remove capabilities
Note: See TracChangeset for help on using the changeset viewer.