Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
08/10/2011 06:32:02 AM (14 years ago)
Author:
djpaul
Message:

Tidy up whitespace. Fixes #3466, props cnorris23

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-core/bp-core-catchuri.php

    r4920 r4961  
    181181        }
    182182    }
    183    
    184     // URLs with BP_ENABLE_ROOT_PROFILES enabled won't be caught above 
     183
     184    // URLs with BP_ENABLE_ROOT_PROFILES enabled won't be caught above
    185185    if ( empty( $matches ) && defined( 'BP_ENABLE_ROOT_PROFILES' ) && BP_ENABLE_ROOT_PROFILES ) {
    186        
     186
    187187        // Make sure there's a user corresponding to $bp_uri[0]
    188188        if ( !empty( $bp_uri[0] ) && $root_profile = get_userdatabylogin( $bp_uri[0] ) ) {
    189            
     189
    190190            // Force BP to recognize that this is a members page
    191191            $matches[]  = 1;
    192192            $match      = $bp->pages->members;
    193193            $match->key = 'members';
    194            
     194
    195195            // Without the 'members' URL chunk, WordPress won't know which page to load
    196196            // This filter intercepts the WP query and tells it to load the members page
    197197            add_filter( 'request', create_function( '$query_args', '$query_args["pagename"] = "' . $match->name . '"; return $query_args;' ) );
    198        
    199         }
    200    
     198
     199        }
     200
    201201    }
    202202
     
    224224
    225225    // Global the unfiltered offset to use in bp_core_load_template().
    226     // To avoid PHP warnings in bp_core_load_template(), it must always be >= 0 
     226    // To avoid PHP warnings in bp_core_load_template(), it must always be >= 0
    227227    $bp_unfiltered_uri_offset = $uri_offset >= 0 ? $uri_offset : 0;
    228228
     
    238238            // Viewing a specific user
    239239            if ( !empty( $bp_uri[$uri_offset + 1] ) ) {
    240                
     240
    241241                // Switch the displayed_user based on compatbility mode
    242242                if ( bp_is_username_compatibility_mode() )
     
    247247                if ( empty( $bp->displayed_user->id ) ) {
    248248                    // Prevent components from loading their templates
    249                     $bp->current_component = ''; 
     249                    $bp->current_component = '';
    250250
    251251                    bp_do_404();
     
    263263                    $bp->current_component = '';
    264264                }
    265                
     265
    266266                // Reset the offset
    267267                $uri_offset = 0;
Note: See TracChangeset for help on using the changeset viewer.