Changeset 9062
- Timestamp:
- 10/05/2014 09:54:53 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-activity/bp-activity-screens.php
r8682 r9062 232 232 233 233 // Redirect based on logged in status 234 is_user_logged_in() ? 235 bp_core_redirect( bp_loggedin_user_domain() ) : 236 bp_core_redirect( site_url( 'wp-login.php?redirect_to=' . esc_url( bp_get_root_domain() . '/' . bp_get_activity_root_slug() . '/p/' . bp_current_action() . '/' ) ) ); 234 if ( is_user_logged_in() ) { 235 $url = bp_loggedin_user_domain(); 236 237 } else { 238 $url = sprintf( 239 site_url( 'wp-login.php?redirect_to=%s' ), 240 urlencode( esc_url_raw( bp_activity_get_permalink( (int) bp_current_action() ) ) ) 241 ); 242 } 243 244 bp_core_redirect( $url ); 237 245 } 238 246
Note: See TracChangeset
for help on using the changeset viewer.