Making WordPress.org

Changeset 14713


Ignore:
Timestamp:
03/13/2026 07:26:23 PM (5 weeks ago)
Author:
obenland
Message:

Login: Don't override the login redirect when it targets application password authorization.

The came_from redirect override was replacing the authorize_application redirect with the cookie value after 2FA, sending users to profiles.wordpress.org
instead of the authorization form.

File:
1 edited

Legend:

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

    r14449 r14713  
    608608            'login.wordpress.org' == $redirect_host &&
    609609            str_contains( $redirect_qv, 'response_type=code' )
     610        ) &&
     611        // Don't override if the redirect is back to an application password authorization.
     612        ! (
     613            'login.wordpress.org' == $redirect_host &&
     614            str_contains( $redirect_qv, 'action=authorize_application' )
    610615        )
    611616    ) {
Note: See TracChangeset for help on using the changeset viewer.