Changeset 8600
- Timestamp:
- 07/11/2014 09:32:44 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-blogs/bp-blogs-functions.php
r8599 r8600 786 786 if ( ! empty( $user_roles ) ) { 787 787 788 // Switch to this blog so roles are re-init'ed 789 switch_to_blog( $blog_id ); 790 788 791 // Look for blog only roles 789 792 $blog_roles = array_intersect( … … 791 794 array_keys( get_editable_roles() ) 792 795 ); 796 797 // Come back to the current blog 798 restore_current_blog(); 793 799 794 800 // 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.