Changeset 6342 for trunk/bp-members/bp-members-loader.php
- Timestamp:
- 09/18/2012 06:03:00 PM (14 years ago)
- File:
-
- 1 edited
-
trunk/bp-members/bp-members-loader.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-members/bp-members-loader.php
r6278 r6342 114 114 $bp->default_component = BP_DEFAULT_COMPONENT; 115 115 } 116 116 117 117 if ( bp_displayed_user_id() ) { 118 118 $bp->canonical_stack['base_url'] = bp_displayed_user_domain(); 119 119 120 120 if ( bp_current_component() ) { 121 121 $bp->canonical_stack['component'] = bp_current_component(); 122 122 } 123 123 124 124 if ( bp_current_action() ) { 125 125 $bp->canonical_stack['action'] = bp_current_action(); 126 126 } 127 127 128 128 if ( !empty( $bp->action_variables ) ) { 129 129 $bp->canonical_stack['action_variables'] = bp_action_variables(); … … 132 132 if ( !bp_current_component() ) { 133 133 $bp->current_component = $bp->default_component; 134 } else if ( bp_is_current_component( $bp->default_component ) && !bp_current_action() ) { 134 } else if ( bp_is_current_component( $bp->default_component ) && !bp_current_action() ) { 135 135 // The canonical URL will not contain the default component 136 136 unset( $bp->canonical_stack['component'] ); … … 210 210 } 211 211 add_action( 'bp_setup_components', 'bp_setup_members', 1 ); 212 213 ?>
Note: See TracChangeset
for help on using the changeset viewer.