Skip to:
Content

bbPress.org


Ignore:
Timestamp:
02/01/2013 11:23:55 PM (13 years ago)
Author:
johnjamesjacoby
Message:

Make bbp_add_forums_roles() return the $wp_roles global, for future use when looking for the WP_Roles object later.

File:
1 edited

Legend:

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

    r4601 r4753  
    327327 *
    328328 * @since bbPress (r4290)
     329 * @return WP_Roles The main $wp_roles global
    329330 */
    330331function bbp_add_forums_roles() {
     
    336337        $wp_roles->role_names[$role_id]   = $details['name'];
    337338    }
     339
     340    return $wp_roles;
    338341}
    339342
Note: See TracChangeset for help on using the changeset viewer.