- Timestamp:
- 06/15/2020 07:19:57 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/common/includes/wporg-sso/class-wporg-sso.php
r9941 r9961 78 78 $login_url = $this->sso_login_url; 79 79 80 if ( ! preg_match( '!wordpress\.org$!', $this->host ) ) { 81 $login_url = add_query_arg( 'from', $this->host, $login_url ); 82 83 // Not all browsers send referers cross-origin, ensure that a redirect_to is set for this hostname. 84 if ( empty( $redirect_to ) ) { 85 $redirect_to = 'https://' . $this->host . $_SERVER['REQUEST_URI']; 86 } 87 } 88 80 89 if ( ! empty( $redirect_to ) && $this->_is_valid_targeted_domain( $redirect_to ) ) { 81 90 $redirect_to = preg_replace( '/\/wp-(login|signup)\.php\??.*$/', '/', $redirect_to ); 82 91 $login_url = add_query_arg( 'redirect_to', urlencode( $redirect_to ), $login_url ); 83 }84 85 if ( ! preg_match( '!wordpress\.org$!', $this->host ) ) {86 $login_url = add_query_arg( 'from', $this->host, $login_url );87 92 } 88 93
Note: See TracChangeset
for help on using the changeset viewer.