Plugin Directory

Changeset 1491888


Ignore:
Timestamp:
09/07/2016 03:57:56 PM (9 years ago)
Author:
smccafferty
Message:

Allow filtering of redirect location

Location:
wp-multisite-sso/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • wp-multisite-sso/trunk/inc/sso.php

    r1151318 r1491888  
    3838$login_header_url   = network_home_url();
    3939$login_header_title = get_current_site()->site_name;
     40
     41$redirect = home_url();
     42
     43/**
     44 * Filter the redirect location.
     45 *
     46 * @param string   $redirect  The redirect location.
     47 * @param string   $action    The login or logout action being taken.
     48 * @param object   $user      The current user.
     49 */
     50$redirect = apply_filters( 'wp_multisite_sso_redirect', $redirect, $action, $user );
    4051?>
    4152<html>
     
    5263        wp_print_scripts( array( 'jquery' ) );
    5364        ?>
    54         <script>           
     65        <script>
    5566            var sites_list, sites_to_load;
    5667
     
    100111            // send the user back to the main page after SSO login/logout
    101112            function loadComplete(){
    102                window.location="<?php echo esc_url( home_url() ); ?>";
     113               window.location="<?php echo esc_url( $redirect ); ?>";
    103114            }
    104115
  • wp-multisite-sso/trunk/readme.txt

    r1151318 r1491888  
    55Requires at least: 4.0
    66Tested up to: 4.2.1
    7 Stable tag: 1.0.2
     7Stable tag: 1.0.3
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
  • wp-multisite-sso/trunk/wp-multisite-sso.php

    r1151318 r1491888  
    22/*
    33  Plugin Name: WP Multisite SSO
    4   Version: 1.0.2
     4  Version: 1.0.3
    55  Plugin URI: http://voceconnect.com/
    66  Description: Single sign on for a multisite network. Users are authenticated across all sites within the network.
     
    159159
    160160        include __DIR__ . '/inc/sso.php';
    161        
     161
    162162        die;
    163163    }
Note: See TracChangeset for help on using the changeset viewer.