Skip to:
Content

bbPress.org


Ignore:
Timestamp:
11/07/2012 08:38:03 AM (13 years ago)
Author:
johnjamesjacoby
Message:

Capabilities:

  • Rename bbp_get_editable_roles() to bbp_get_dynamic_roles().
  • This new function name better represents bbPress's approach to secondary user roles, in that these roles are no longer intentionally saved to the database.
  • See #1939.
File:
1 edited

Legend:

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

    r4349 r4352  
    112112    // User has roles so lets
    113113    if ( ! empty( $user->roles ) ) {
    114         $roles = array_intersect( array_values( $user->roles ), array_keys( bbp_get_editable_roles() ) );
     114        $roles = array_intersect( array_values( $user->roles ), array_keys( bbp_get_dynamic_roles() ) );
    115115
    116116        // If there's a role in the array, use the first one
Note: See TracChangeset for help on using the changeset viewer.