Skip to:
Content

bbPress.org


Ignore:
Timestamp:
08/11/2015 08:17:53 PM (9 years ago)
Author:
johnjamesjacoby
Message:

Sniffer: Whitespace around variables in arrays.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/includes/users/capabilities.php

    r5834 r5908  
    365365
    366366    // Use a mapped role
    367     if ( isset( $role_map[$user_role] ) ) {
    368         $new_role = $role_map[$user_role];
     367    if ( isset( $role_map[ $user_role ] ) ) {
     368        $new_role = $role_map[ $user_role ];
    369369
    370370    // Use the default role
     
    385385    // Don't add the user, but still give them the correct caps dynamically
    386386    } else {
    387         $bbp->current_user->caps[$new_role] = true;
     387        $bbp->current_user->caps[ $new_role ] = true;
    388388        $bbp->current_user->get_role_caps();
    389389    }
Note: See TracChangeset for help on using the changeset viewer.