Making WordPress.org


Ignore:
Timestamp:
09/24/2018 03:45:23 AM (6 years ago)
Author:
dd32
Message:

Login: Allow query parameters on the /logout route. This is needed to support the locale switcher, and future custom redirection locations.

See #3821.
Fixes #3823.

File:
1 edited

Legend:

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

    r7689 r7695  
    4444                // If on the SSO host, add the requesting source (eg: make.wordpress.org), if within our bounds
    4545                $url  = parse_url( $this->_get_safer_redirect_to() );
    46                 $host = ( empty( $url ) ) ? null : $url['host'];
     46                $host = ( ! $url || ! isset( $url['host'] ) ) ? null : $url['host'];
    4747            } else {
    4848                // If not on the SSO host, add login.wordpress.org, to be safe
Note: See TracChangeset for help on using the changeset viewer.