Making WordPress.org


Ignore:
Timestamp:
11/08/2022 03:52:54 AM (4 years ago)
Author:
dd32
Message:

Login: SSO: When performing a remote-login (ie. wordpress.org => buddypress.org) use the redirect_to as the SSO login destination instead of relying upon /wp-login.php being accessible at the root.

This opens up support for Multisite Subdirectory installs, such as WordCamp.org.

File:
1 edited

Legend:

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

    r12220 r12223  
    231231                        }
    232232
    233                         if ( ! $this->_is_valid_targeted_domain( $to ) ) {
     233                        // If it's a full URI, validate the host.
     234                        if ( ! str_starts_with( $to, '/' ) && ! $this->_is_valid_targeted_domain( $to ) ) {
    234235                                $to = $this->_get_safer_redirect_to();
    235236                        }
Note: See TracChangeset for help on using the changeset viewer.