Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
03/08/2011 06:35:03 AM (13 years ago)
Author:
johnjamesjacoby
Message:

More auditing of _slug and _root_slug functions.

Introduce functions for updating '$bp->is_' globals to prevent loading $bp global in several functions.

Various phpDoc fixes and whitespace clean-up. (1.3 trunk)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-forums/bp-forums-template.php

    r4012 r4088  
    240240
    241241    // If $_GET['fs'] is set, let's auto populate the search_terms var
    242     if ( isset( $bp->is_directory ) && !empty( $_GET['fs'] ) )
     242    if ( bp_is_directory() && !empty( $_GET['fs'] ) )
    243243        $search_terms = $_GET['fs'];
    244244
     
    713713        global $bp;
    714714
    715         if ( !$bp->is_directory || !$bp->current_action )
     715        if ( !bp_is_directory() || !$bp->current_action )
    716716            return 'newest';
    717717
     
    726726        global $bp;
    727727
    728         if ( $bp->is_directory && $bp->forums->slug == $bp->current_component )
     728        if ( bp_is_directory() && $bp->forums->slug == $bp->current_component )
    729729            return apply_filters( 'bp_get_forums_tag_name', $bp->action_variables[0] );
    730730    }
Note: See TracChangeset for help on using the changeset viewer.