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/core/capabilities.php

    r4351 r4352  
    329329    $wp_roles = bbp_get_wp_roles();
    330330
    331     foreach( bbp_get_editable_roles() as $role_id => $details ) {
     331    foreach( bbp_get_dynamic_roles() as $role_id => $details ) {
    332332        $wp_roles->roles[$role_id]        = $details;
    333333        $wp_roles->role_objects[$role_id] = new WP_Role( $details['name'], $details['capabilities'] );
     
    353353 * @return array
    354354 */
    355 function bbp_get_editable_roles() {
    356     return (array) apply_filters( 'bbp_get_editable_roles', array(
     355function bbp_get_dynamic_roles() {
     356    return (array) apply_filters( 'bbp_get_dynamic_roles', array(
    357357
    358358        // Keymaster
     
    403403 */
    404404function bbp_filter_blog_editable_roles( $all_roles = array() ) {
    405     return array_diff_assoc( $all_roles, bbp_get_editable_roles() );
     405    return array_diff_assoc( $all_roles, bbp_get_dynamic_roles() );
    406406}
    407407
Note: See TracChangeset for help on using the changeset viewer.