Making WordPress.org


Ignore:
Timestamp:
06/21/2021 05:36:48 AM (5 years ago)
Author:
dd32
Message:

Login: When a user is logged in, or an account creation link has already been used, redirect the user more appropriately to a page explaining the issue.

This removes a "random" redirect on certain Login pages that would result in the user redirected to the WordPress.org homepage, or support forums, with no further explanation.

Fixes #5754.

File:
1 edited

Legend:

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

    r11044 r11046  
    1111<?php
    1212wp_login_form( [
    13         // pre-fill the last user if their session has simply timed out.
    14         'value_username' => wp_parse_auth_cookie()['username'] ?? ''
     13        // pre-fill with a given username, or with the last user if their session has simply timed out.
     14        'value_username' => $_REQUEST['user'] ?? ( wp_parse_auth_cookie()['username'] ?? '' )
    1515] );
    1616?>
Note: See TracChangeset for help on using the changeset viewer.