Changeset 12834
- Timestamp:
- 08/11/2023 05:54:47 AM (18 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-login/functions-restapi.php
r12811 r12834 46 46 47 47 // Check we don't have a pending registration for that username. 48 if ( $pending = wporg_get_pending_user( $login ) ) { 48 $pending = wporg_get_pending_user( $login ); 49 if ( $pending && ! $pending['cleared'] ) { 50 // Account is in pending state, but requires manual human review, don't suggest sending a reset email. 51 $sso = WPOrg_SSO::get_instance(); 52 53 return [ 54 'available' => false, 55 'error' => sprintf( 56 __( 'That username is already in use.', 'wporg' ) . '<br>' . 57 /* translators: %s Email address */ 58 __( 'Your account is pending approval. You will receive an email at %s to set your password when approved.', 'wporg' ) . 59 /* translators: %s Email address */ 60 '<br>' . __( 'Please contact %s for more details.', 'wporg' ), 61 '<code>' . esc_html( $pending['user_email'] ) . '</code>', 62 '<a href="mailto:' . $sso::SUPPORT_EMAIL . '">' . $sso::SUPPORT_EMAIL . '</a>' 63 ), 64 'avatar' => get_avatar( $email, 64 ), 65 ]; 66 } elseif ( $pending ) { 49 67 return [ 50 68 'available' => false,
Note: See TracChangeset
for help on using the changeset viewer.