Plugin Directory

Changeset 2311287


Ignore:
Timestamp:
05/25/2020 03:31:56 AM (6 years ago)
Author:
scoop082110
Message:

Bug fix release 1.1.1.

Location:
xlogin/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • xlogin/trunk/init.php

    r2310983 r2311287  
    33 * Plugin Name: XLogin
    44 * Description: Login using external auth mechanisms.
    5  * Version: 1.1
     5 * Version: 1.1.1
    66 * Author: Patrick Lai
    77 *
     
    113113            // page so that user does not get an error page.
    114114            add_filter('login_redirect', function($url) {
    115                 if (strpos($url, admin_url()) == 0)
     115                $redir = parse_url($url, PHP_URL_PATH);
     116                $admin = parse_url(admin_url(), PHP_URL_PATH);
     117                if (untrailingslashit($redir) == untrailingslashit($admin))
    116118                    return site_url();
    117119                return $url;
  • xlogin/trunk/readme.txt

    r2310981 r2311287  
    44Requires at least: 5.3
    55Tested up to: 5.4
    6 Stable tag: 1.1
     6Stable tag: 1.1.1
    77Requires PHP: 7.0
    88License: GPLv2 or later
     
    186186== Changelog ==
    187187
     188= 1.1.1 =
     189* Bug fix: guest login always redirected to site URL.
     190
    188191= 1.1 =
    189192* Custom message to display with external login buttons.
Note: See TracChangeset for help on using the changeset viewer.