Changeset 4964 for sites/trunk/common/includes/wporg-sso/wp-plugin.php
- Timestamp:
- 02/20/2017 11:49:01 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/common/includes/wporg-sso/wp-plugin.php
r4963 r4964 147 147 148 148 // Add our host to the list of allowed ones. 149 add_filter( 'allowed_redirect_hosts', array( &$this, 'add_allowed_redirect_host' ) );149 add_filter( 'allowed_redirect_hosts', array( $this, 'add_allowed_redirect_host' ) ); 150 150 151 151 // Replace some URLs by our own. 152 add_filter( 'lostpassword_url', array( &$this, 'lostpassword_url' ), 20, 2 );152 add_filter( 'lostpassword_url', array( $this, 'lostpassword_url' ), 20, 2 ); 153 153 add_filter( 'site_url', array( $this, 'login_post_url' ), 20, 3 ); 154 154 add_filter( 'register_url', array( $this, 'register_url' ), 20 ); … … 216 216 } else { 217 217 if ( empty( $_GET['screen'] ) ) { 218 add_filter( 'login_form_defaults', array( &$this, 'login_form_defaults' ) );218 add_filter( 'login_form_defaults', array( $this, 'login_form_defaults' ) ); 219 219 } 220 220 } … … 241 241 } else { 242 242 // if on login screen, filter network_site_url to make sure our forms go to the SSO host, not wordpress.org 243 add_action( 'network_site_url', array( &$this, 'login_network_site_url' ), 10, 3 );243 add_action( 'network_site_url', array( $this, 'login_network_site_url' ), 10, 3 ); 244 244 } 245 245 } … … 255 255 * @return string 256 256 * 257 * @example add_action( 'network_site_url', array( &$this, 'login_network_site_url' ), 10, 3 );257 * @example add_action( 'network_site_url', array( $this, 'login_network_site_url' ), 10, 3 ); 258 258 */ 259 259 public function login_network_site_url( $url, $path, $scheme ) {
Note: See TracChangeset
for help on using the changeset viewer.