Skip to:
Content

BuddyPress.org

Changeset 8601


Ignore:
Timestamp:
07/11/2014 11:25:50 PM (10 years ago)
Author:
johnjamesjacoby
Message:

Revert r8600 for now, likely until roles and caps get themselves a nice overhaul. See #5749.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-blogs/bp-blogs-functions.php

    r8600 r8601  
    786786        if ( ! empty( $user_roles ) ) {
    787787
    788             // Switch to this blog so roles are re-init'ed
    789             switch_to_blog( $blog_id );
    790 
    791788            // Look for blog only roles
    792789            $blog_roles = array_intersect(
     
    794791                array_keys( get_editable_roles() )
    795792            );
    796 
    797             // Come back to the current blog
    798             restore_current_blog();
    799793
    800794            // If there's a role in the array, use the first one. This isn't
Note: See TracChangeset for help on using the changeset viewer.