Making WordPress.org


Ignore:
Timestamp:
04/27/2022 03:39:12 AM (2 years ago)
Author:
dd32
Message:

Login: Translate the 'You need to change your password' error, and include the password reset email queue in the message.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-login/functions.php

    r11615 r11799  
    491491/**
    492492 * Replace some login related error messages with nicer forms.
    493  *
    494  * See https://core.trac.wordpress.org/ticket/52915
    495493 */
    496494function wporg_login_errors_nicify( $errors, $redirect_to ) {
     495    $sso = WPOrg_SSO::get_instance();
    497496
    498497    $replace_errors = [
     
    503502        ),
    504503
     504        'must_change_password' => sprintf(
     505            /* translators: %s: <code>password reset help queue.</code> */
     506            __( '<strong>Error:</strong> Your password needs to be changed. Please check your email for a link to set a new password. Please contact %s if you are unable to access your accounts registered email.', 'wporg' ),
     507            '<code>' . $sso::SUPPORT_EMAIL . '</code>'
     508        )
    505509    ];
    506510
Note: See TracChangeset for help on using the changeset viewer.