Changeset 11046 for sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-login/pending-profile.php
- Timestamp:
- 06/21/2021 05:36:48 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-login/pending-profile.php
r10981 r11046 8 8 $sso = WPOrg_SSO::get_instance(); 9 9 10 10 // Migrate to cookies. 11 11 if ( !empty( $sso::$matched_route_params['profile_user'] ) ) { 12 12 setcookie( 'wporg_profile_user', $sso::$matched_route_params['profile_user'], time()+DAY_IN_SECONDS, '/register/', 'login.wordpress.org', true, true ); … … 21 21 22 22 $pending_user = wporg_get_pending_user( $profile_user ); 23 24 // Already logged in.. Warn about duplicate accounts, etc. 25 if ( is_user_logged_in() ) { 26 wp_safe_redirect( home_url( '/linkexpired/register-logged-in' ) ); 27 exit; 28 } 23 29 24 30 $can_access = false; … … 37 43 38 44 if ( $can_access && $pending_user['created'] ) { 39 wp_safe_redirect( 'https://wordpress.org/support/');45 wp_safe_redirect( home_url( '/linkexpired/account-created/' . urlencode( $pending_user['user_login'] ) ) ); 40 46 die(); 41 47 } elseif ( ! $can_access ) {
Note: See TracChangeset
for help on using the changeset viewer.