Making WordPress.org

Changeset 7648


Ignore:
Timestamp:
09/06/2018 08:46:58 PM (6 years ago)
Author:
Otto42
Message:

WP-SSO: Force the redirect to value in the GET parameters, so as to allow the language switcher to know about it when it comes from the referer instead of explicitly in the URL. Fixes #meta3794.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/common/includes/wporg-sso/wp-plugin.php

    r7209 r7648  
    311311                $defaults['redirect'] = $_GET['redirect_to']; // always ultimately checked for safety at redir time
    312312            } elseif ( $referer = wp_get_referer() ) {
     313                $_GET['redirect_to'] = $referer;
    313314                $defaults['redirect'] = $referer;
    314315            }
Note: See TracChangeset for help on using the changeset viewer.