Skip to:
Content

bbPress.org

Changeset 4601


Ignore:
Timestamp:
12/20/2012 11:31:18 AM (8 years ago)
Author:
johnjamesjacoby
Message:

In bbp_add_forums_roles(), use $role_id instead of literal translated role name. Fixes #2105.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/includes/core/capabilities.php

    r4592 r4601  
    333333    foreach( bbp_get_dynamic_roles() as $role_id => $details ) {
    334334        $wp_roles->roles[$role_id]        = $details;
    335         $wp_roles->role_objects[$role_id] = new WP_Role( $details['name'], $details['capabilities'] );
     335        $wp_roles->role_objects[$role_id] = new WP_Role( $role_id, $details['capabilities'] );
    336336        $wp_roles->role_names[$role_id]   = $details['name'];
    337337    }
Note: See TracChangeset for help on using the changeset viewer.