Making WordPress.org


Ignore:
Timestamp:
12/03/2015 07:16:55 PM (11 years ago)
Author:
stephdau
Message:

WPORG SSO (login.wordpress.org): use self::SSO_HOST instead of a hardcoded value.

Relates to #1406

File:
1 edited

Legend:

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

    r2158 r2159  
    9797                public function login_network_site_url( $url, $path, $scheme ) {
    9898                        if ( self::SSO_HOST === $this->host && preg_match( '/\/wp-login\.php$/', $this->script ) ) {
    99                                 $url = preg_replace( '/^(https?:\/\/)[^\/]+(\/.+)$/' , '\1login.wordpress.org\2', $url );
     99                                $url = preg_replace( '/^(https?:\/\/)[^\/]+(\/.+)$/' , '\1'.self::SSO_HOST.'\2', $url );
    100100                        }
    101101                       
Note: See TracChangeset for help on using the changeset viewer.