Making WordPress.org


Ignore:
Timestamp:
10/15/2019 07:23:53 AM (7 years ago)
Author:
dd32
Message:

SSO: Swap a bunch of login/registration redirects to 301's.

See #4630.

File:
1 edited

Legend:

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

    r3166 r9182  
    3535                // Redirect registration request to the one we want to standardize on.
    3636                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 );
    3838                }
    3939            } else if ( preg_match( '/\/bb-login\.php$/', $this->script ) ) {
     
    5757
    5858                // 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 );
    6060            }
    6161        }
Note: See TracChangeset for help on using the changeset viewer.