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-template.php

    r4907 r4961  
    495495function bp_action_variable( $position = 0 ) {
    496496    $action_variables = bp_action_variables();
    497    
     497
    498498    $action_variable = isset( $action_variables[$position] ) ? $action_variables[$position] : false;
    499    
     499
    500500    return apply_filters( 'bp_action_variable', $action_variable, $position );
    501501}
     
    669669        } elseif ( isset( $bp->{$component}->slug ) && $bp->{$component}->slug == $bp->current_component ) {
    670670            $is_current_component = true;
    671            
     671
    672672        // Next, check to see whether $component is a canonical,
    673673        // non-translatable component name. If so, we can return its
     
    677677                $is_current_component = true;
    678678
    679         // If we haven't found a match yet, check against the root_slugs 
     679        // If we haven't found a match yet, check against the root_slugs
    680680        // created by $bp->pages, as well as the regular slugs
    681681        } else {
     
    752752 *   the function will return true if the $action_variable is found *anywhere* in the action
    753753 *   variables array.
    754  * @return bool 
     754 * @return bool
    755755 */
    756756function bp_is_action_variable( $action_variable = '', $position = false ) {
    757757    $is_action_variable = false;
    758    
     758
    759759    if ( false !== $position ) {
    760         // When a $position is specified, check that slot in the action_variables array     
     760        // When a $position is specified, check that slot in the action_variables array
    761761        if ( $action_variable ) {
    762762            $is_action_variable = $action_variable == bp_action_variable( $position );
     
    770770        $is_action_variable = in_array( $action_variable, (array)bp_action_variables() );
    771771    }
    772    
     772
    773773    return apply_filters( 'bp_is_action_variable', $is_action_variable, $action_variable, $position );
    774774}
     
    829829function bp_is_root_component( $component_name ) {
    830830    global $bp;
    831    
     831
    832832    if ( !isset( $bp->active_components ) )
    833833        return false;
     
    10301030    if ( bp_is_current_component( 'xprofile' ) && bp_is_current_action( 'edit' ) )
    10311031        return true;
    1032        
     1032
    10331033    return false;
    10341034}
Note: See TracChangeset for help on using the changeset viewer.