Changeset 9182
- Timestamp:
- 10/15/2019 07:23:53 AM (17 months ago)
- Location:
- sites/trunk/common/includes/wporg-sso
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/common/includes/wporg-sso/bb-plugin.php
r3166 r9182 35 35 // Redirect registration request to the one we want to standardize on. 36 36 if ( "https://{$this->host}{$this->script}" !== $this->sso_signup_url ) { 37 $this->_safe_redirect( $this->sso_signup_url );37 $this->_safe_redirect( $this->sso_signup_url, 301 ); 38 38 } 39 39 } else if ( preg_match( '/\/bb-login\.php$/', $this->script ) ) { … … 57 57 58 58 // Redirect to SSO login, trying to pass on a decent redirect_to request. 59 $this->_safe_redirect( $redirect_to_sso_login );59 $this->_safe_redirect( $redirect_to_sso_login, 301 ); 60 60 } 61 61 } -
sites/trunk/common/includes/wporg-sso/wp-plugin.php
r9146 r9182 169 169 if ( preg_match( '!/wp-signup\.php$!', $this->script ) ) { 170 170 // If we're on any WP signup screen, redirect to the SSO host one,respecting the user's redirect_to request 171 $this->_safe_redirect( add_query_arg( 'redirect_to', urlencode( $redirect_req ), $this->sso_signup_url ) );171 $this->_safe_redirect( add_query_arg( 'redirect_to', urlencode( $redirect_req ), $this->sso_signup_url ), 301 ); 172 172 173 173 } elseif ( ! $this->is_sso_host() ) { … … 191 191 192 192 // And actually redirect to the SSO login 193 $this->_safe_redirect( $redirect_to_sso_login );193 $this->_safe_redirect( $redirect_to_sso_login, 301 ); 194 194 195 195 } else { … … 226 226 $get['redirect_to'] = $this->_get_safer_redirect_to(); 227 227 } 228 $this->_safe_redirect( add_query_arg( $get, $this->sso_login_url . '/wp-login.php' ) );228 $this->_safe_redirect( add_query_arg( $get, $this->sso_login_url . '/wp-login.php' ), 301 ); 229 229 return; 230 230 } else { … … 253 253 } else { 254 254 // Otherwise, redirect to the login screen. 255 $this->_safe_redirect( $this->sso_login_url );255 $this->_safe_redirect( $this->sso_login_url, 301 ); 256 256 } 257 257 } else { … … 360 360 $this->_safe_redirect( $this->_get_safer_redirect_to() ); 361 361 } else { 362 $this->_safe_redirect( 'https://profiles.wordpress.org/' . wp_get_current_user()->user_nicename );362 $this->_safe_redirect( 'https://profiles.wordpress.org/' . wp_get_current_user()->user_nicename . '/' ); 363 363 } 364 364 }
Note: See TracChangeset
for help on using the changeset viewer.