Changeset 10928 for sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-login/pending-profile.php
- Timestamp:
- 04/27/2021 04:24:21 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-login/pending-profile.php
r10898 r10928 6 6 */ 7 7 8 $sso = WPOrg_SSO::get_instance(); 9 8 10 // Migrate to cookies. 9 if ( !empty( WP_WPOrg_SSO::$matched_route_params['profile_user'] ) ) {10 setcookie( 'wporg_profile_user', WP_WPOrg_SSO::$matched_route_params['profile_user'], time()+DAY_IN_SECONDS, '/register/', 'login.wordpress.org', true, true );11 setcookie( 'wporg_profile_key', WP_WPOrg_SSO::$matched_route_params['profile_key'], time()+DAY_IN_SECONDS, '/register/', 'login.wordpress.org', true, true );11 if ( !empty( $sso::$matched_route_params['profile_user'] ) ) { 12 setcookie( 'wporg_profile_user', $sso::$matched_route_params['profile_user'], time()+DAY_IN_SECONDS, '/register/', 'login.wordpress.org', true, true ); 13 setcookie( 'wporg_profile_key', $sso::$matched_route_params['profile_key'], time()+DAY_IN_SECONDS, '/register/', 'login.wordpress.org', true, true ); 12 14 13 15 wp_safe_redirect( '/register/create-profile' ); … … 54 56 <div class="message info"> 55 57 <p><?php 58 if ( $pending_user['cleared'] ) { 56 59 printf( 57 60 /* translators: %s Email address */ … … 61 64 esc_attr( $pending_user['user_email'] ) 62 65 ); 66 } else { 67 printf( 68 /* translators: %s Email address */ 69 __( 'Your account is pending approval. You will receive an email at %s to set your password when approved.', 'wporg' ) . '<br>' . 70 __( 'Please contact %s for more details.', 'wporg' ), 71 '<code>' . esc_html( $pending_user['user_email'] ) . '</code>', 72 '<a href="mailto:' . $sso::SUPPORT_EMAIL . '">' . $sso::SUPPORT_EMAIL . '</a>' 73 ); 74 } 63 75 ?></p> 64 76 </div> 65 77 66 78 <p class="intro"> 67 <?php _e( 'Complete your WordPress.org Profile information.', 'wporg' ); ?>79 <?php _e( 'Complete your WordPress.org Profile information.', 'wporg' ); ?> 68 80 </p> 69 81 … … 72 84 <input type="text" disabled="disabled" class=" disabled" value="<?php echo esc_attr( $profile_user ); ?>" size="20" /> 73 85 </p> 74 75 86 76 87 <?php
Note: See TracChangeset
for help on using the changeset viewer.