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/gp-plugin.php

    r2098 r2150  
    1212        function __construct() {
    1313            parent::__construct();
     14           
    1415            // Load SSO lib
    1516            $this->instantiate_sso();
    16             // Actions
    17             $this->add_action( 'init' );
    18             // Filters
    19             $this->add_filter( 'gp_url', array( 'args' => 3 ) );
     17           
     18            if ( $this->sso_obj->has_host() ) {
     19                // Actions
     20                $this->add_action( 'init' );
     21                // Filters
     22                $this->add_filter( 'gp_url', array( 'args' => 3 ) );
     23            }
    2024        }
    2125       
Note: See TracChangeset for help on using the changeset viewer.