Changeset 10981 for sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-login/pending-profile.php
- Timestamp:
- 05/17/2021 04:58:00 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
r10928 r10981 44 44 } 45 45 46 if ( wporg_login_save_profile_fields( $pending_user ) ) {46 if ( wporg_login_save_profile_fields( $pending_user, 'pending' ) ) { 47 47 // re-fetch the user, it's probably changed. 48 48 $pending_user = wporg_get_pending_user( $profile_user ); 49 49 } 50 50 wp_enqueue_script( 'wporg-registration' ); 51 52 // Allow changing the email, if they've not already changed it once. 53 $email_change_available = empty( $pending_user['meta']['changed_email'] ); 51 54 52 55 get_header(); … … 59 62 printf( 60 63 /* translators: %s Email address */ 61 __( 'Please check your email %s for a confirmation link to set your password.', 'wporg' ) . '<br>' . 62 '<a href="#" class="resend" data-account="%s">' . __( 'Resend confirmation email.', 'wporg' ) . '</a>', 64 __( 'Please check your email %s for a confirmation link to set your password.', 'wporg' ) . 65 '<br><br>' . '<a href="#" class="resend" data-account="%s">' . __( 'Resend confirmation email.', 'wporg' ) . '</a>' . 66 ( $email_change_available ? '<br>' . '<a href="#" class="change-email">' . __( 'Incorrect email? Update email address.', 'wporg' ) . '</a>' : '' ), 63 67 '<code>' . esc_html( $pending_user['user_email'] ) . '</code>', 64 68 esc_attr( $pending_user['user_email'] ) … … 67 71 printf( 68 72 /* 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' ), 73 __( 'Your account is pending approval. You will receive an email at %s to set your password when approved.', 'wporg' ) . 74 '<br>' . __( 'Please contact %s for more details.', 'wporg' ) . 75 ( $email_change_available ? '<br><br>' . '<a href="#" class="change-email">' . __( 'Incorrect email? Update email address.', 'wporg' ) . '</a>' : '' ), 71 76 '<code>' . esc_html( $pending_user['user_email'] ) . '</code>', 72 77 '<a href="mailto:' . $sso::SUPPORT_EMAIL . '">' . $sso::SUPPORT_EMAIL . '</a>' … … 83 88 <label for="user_login"><?php _e( 'Username', 'wporg' ); ?></label> 84 89 <input type="text" disabled="disabled" class=" disabled" value="<?php echo esc_attr( $profile_user ); ?>" size="20" /> 90 </p> 91 92 <p class="login-email hidden"> 93 <label for="user_email"><?php _e( 'Email', 'wporg' ); ?></label> 94 <input type="text" name="user_email" value="<?php echo esc_attr( $pending_user['user_email'] ); ?>" size="20" maxlength="100" /> 85 95 </p> 86 96
Note: See TracChangeset
for help on using the changeset viewer.