Making WordPress.org


Ignore:
Timestamp:
12/03/2015 03:14:47 PM (9 years ago)
Author:
stephdau
Message:

WPORG SSO (login.wordpress.org):

  • Adding an WPOrg_SSO::has_host() method to test if we have $_SERVERHTTP_HOST?
  • Testing for WPOrg_SSO::has_host() before proceeding,no need to if we don;t have one (EG: cron'd processes)
  • Adding a $_SERVER['HTTP_REFERER'] test to WPOrg_SSO::_get_safer_redirect_to(), which now also enables SSO for our Trac instances (see #1422) and improves it for our BB instances (see #1423).
File:
1 edited

Legend:

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

    r2135 r2150  
    1818            parent::__construct();
    1919
    20             add_action( 'init', array( &$this, 'redirect_all_login_or_signup_to_sso' ) );
     20            if ( $this->has_host() ) {
     21                add_action( 'init', array( &$this, 'redirect_all_login_or_signup_to_sso' ) );
     22            }
    2123        }
    2224   
Note: See TracChangeset for help on using the changeset viewer.