Changeset 5971
- Timestamp:
- 04/09/2012 09:45:56 PM (14 years ago)
- File:
-
- 1 edited
-
trunk/bp-groups/bp-groups-loader.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-groups/bp-groups-loader.php
r5927 r5971 16 16 17 17 class BP_Groups_Component extends BP_Component { 18 /** 19 * Default group extension 20 * 21 * @since BuddyPress (1.6) 22 */ 23 var $default_component; 18 24 19 25 /** … … 177 183 } 178 184 179 $ groups_default_extension = apply_filters( 'bp_groups_default_extension', defined( 'BP_GROUPS_DEFAULT_EXTENSION' ) ? BP_GROUPS_DEFAULT_EXTENSION : 'home' );180 185 $this->default_extension = apply_filters( 'bp_groups_default_extension', defined( 'BP_GROUPS_DEFAULT_EXTENSION' ) ? BP_GROUPS_DEFAULT_EXTENSION : 'home' ); 186 181 187 if ( !bp_current_action() ) { 182 $bp->current_action = $ groups_default_extension;183 } else if ( bp_is_current_action( $ groups_default_extension ) && !empty( $bp->action_variables ) ) {188 $bp->current_action = $this->default_extension; 189 } else if ( bp_is_current_action( $this->default_extension ) && !empty( $bp->action_variables ) ) { 184 190 unset( $bp->canonical_stack['action'] ); 185 191 } … … 323 329 'position' => -1, // Do not show in BuddyBar 324 330 'screen_function' => 'groups_screen_group_home', 325 'default_subnav_slug' => 'home',331 'default_subnav_slug' => $this->default_extension, 326 332 'item_css_id' => $this->id 327 333 );
Note: See TracChangeset
for help on using the changeset viewer.