Changeset 10921
- Timestamp:
- 04/22/2021 01:45:47 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/buddypress.org/public_html/wp-content/plugins/buddypress-org/extensions.php
r10388 r10921 201 201 202 202 $redirect = false; 203 $has_user = isset( $activity->user_id, $activity->user_nicename, $activity->user_login ); 204 203 205 /* Redirect based on the type of activity */ 204 206 if ( bp_is_active( 'groups' ) && $activity->component == $bp->groups->id ) { 205 if ( $ activity->user_id) {207 if ( $has_user ) { 206 208 $redirect = bp_core_get_user_domain( $activity->user_id, $activity->user_nicename, $activity->user_login ) . $bp->activity->name . '/' . $activity->id . '/'; 207 209 } 208 } else 210 } else if ( $has_user ) { 209 211 $redirect = bp_core_get_user_domain( $activity->user_id, $activity->user_nicename, $activity->user_login ) . $bp->activity->name . '/' . $activity->id; 212 } 210 213 211 214 return $redirect;
Note: See TracChangeset
for help on using the changeset viewer.