Changeset 2311287
- Timestamp:
- 05/25/2020 03:31:56 AM (6 years ago)
- Location:
- xlogin/trunk
- Files:
-
- 2 edited
-
init.php (modified) (2 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
xlogin/trunk/init.php
r2310983 r2311287 3 3 * Plugin Name: XLogin 4 4 * Description: Login using external auth mechanisms. 5 * Version: 1.1 5 * Version: 1.1.1 6 6 * Author: Patrick Lai 7 7 * … … 113 113 // page so that user does not get an error page. 114 114 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)) 116 118 return site_url(); 117 119 return $url; -
xlogin/trunk/readme.txt
r2310981 r2311287 4 4 Requires at least: 5.3 5 5 Tested up to: 5.4 6 Stable tag: 1.1 6 Stable tag: 1.1.1 7 7 Requires PHP: 7.0 8 8 License: GPLv2 or later … … 186 186 == Changelog == 187 187 188 = 1.1.1 = 189 * Bug fix: guest login always redirected to site URL. 190 188 191 = 1.1 = 189 192 * Custom message to display with external login buttons.
Note: See TracChangeset
for help on using the changeset viewer.