Changeset 6285 for trunk/bp-core/bp-core-caps.php
- Timestamp:
- 09/03/2012 12:33:13 AM (14 years ago)
- File:
-
- 1 edited
-
trunk/bp-core/bp-core-caps.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core/bp-core-caps.php
r6185 r6285 231 231 * @since BuddyPress (1.6) 232 232 * 233 * @global BuddyPress $b bp233 * @global BuddyPress $bp 234 234 * 235 235 * @uses is_multisite() … … 258 258 // Give the user the 'Forum Participant' role 259 259 if ( current_user_can( 'bp_masked' ) ) { 260 global $b bp;260 global $bp; 261 261 262 262 // Get the default role … … 264 264 265 265 // Set the current users default role 266 $b bp->current_user->set_role( $default_role );266 $bp->current_user->set_role( $default_role ); 267 267 } 268 268 } … … 323 323 * @uses bp_get_caps_for_role() 324 324 * 325 * @global BuddyPress $b bp325 * @global BuddyPress $bp 326 326 * @return If not multisite, not global, or user is deleted/spammed 327 327 */
Note: See TracChangeset
for help on using the changeset viewer.