Version Description
- Fix site and website url placeholder bug in multisite.
Download this release
Release Info
Developer | Collizo4sky |
Plugin | Peter’s Login Redirect |
Version | 3.0.0.7 |
Comparing to | |
See all releases |
Code changes from version 3.0.0.6 to 3.0.0.7
- changelog.txt +3 -0
- languages/peters-login-redirect.pot +6 -6
- readme.txt +4 -1
- src/core/src/Core.php +1 -1
- src/core/src/Helpers.php +2 -2
- vendor/autoload.php +1 -1
- vendor/composer/autoload_real.php +7 -7
- vendor/composer/autoload_static.php +4 -4
- vendor/composer/installed.json +7 -7
- vendor/composer/installed.php +5 -5
- wplogin_redirect.php +2 -2
changelog.txt
CHANGED
@@ -1,5 +1,8 @@
|
|
1 |
== Changelog ==
|
2 |
|
|
|
|
|
|
|
3 |
= 3.0.0.6 =
|
4 |
* Compatibility with WP 5.9.
|
5 |
* Pro: Added [LearnDash](https://loginwp.com/?utm_source=wprepo&utm_medium=changelog&utm_campaign=3006#pro-conditions) Enrolled Course and User Group redirect conditions.
|
1 |
== Changelog ==
|
2 |
|
3 |
+
= 3.0.0.7 =
|
4 |
+
* Fix site and website url placeholder bug in multisite.
|
5 |
+
|
6 |
= 3.0.0.6 =
|
7 |
* Compatibility with WP 5.9.
|
8 |
* Pro: Added [LearnDash](https://loginwp.com/?utm_source=wprepo&utm_medium=changelog&utm_campaign=3006#pro-conditions) Enrolled Course and User Group redirect conditions.
|
languages/peters-login-redirect.pot
CHANGED
@@ -1,15 +1,15 @@
|
|
1 |
-
# Copyright (C)
|
2 |
# This file is distributed under the same license as the LoginWP (Formerly Peter's Login Redirect) package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: LoginWP (Formerly Peter's Login Redirect) 3.0.0.
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/peters-login-"
|
7 |
"redirect\n"
|
8 |
-
"POT-Creation-Date:
|
9 |
"MIME-Version: 1.0\n"
|
10 |
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
12 |
-
"PO-Revision-Date:
|
13 |
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
14 |
"Language-Team: LANGUAGE <LL@li.org>\n"
|
15 |
|
@@ -671,9 +671,9 @@ msgstr ""
|
|
671 |
msgid "LoginWP (Formerly Peter's Login Redirect)"
|
672 |
msgstr ""
|
673 |
|
674 |
-
#. #-#-#-#-# peters-login-redirect.pot (LoginWP (Formerly Peter's Login Redirect) 3.0.0.
|
675 |
#. Plugin URI of the plugin/theme
|
676 |
-
#. #-#-#-#-# peters-login-redirect.pot (LoginWP (Formerly Peter's Login Redirect) 3.0.0.
|
677 |
#. Author URI of the plugin/theme
|
678 |
msgid "https://loginwp.com"
|
679 |
msgstr ""
|
1 |
+
# Copyright (C) 2022 LoginWP (Formerly Peter's Login Redirect)
|
2 |
# This file is distributed under the same license as the LoginWP (Formerly Peter's Login Redirect) package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: LoginWP (Formerly Peter's Login Redirect) 3.0.0.7\n"
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/peters-login-"
|
7 |
"redirect\n"
|
8 |
+
"POT-Creation-Date: 2022-01-19 15:37:55+00:00\n"
|
9 |
"MIME-Version: 1.0\n"
|
10 |
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
12 |
+
"PO-Revision-Date: 2022-MO-DA HO:MI+ZONE\n"
|
13 |
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
14 |
"Language-Team: LANGUAGE <LL@li.org>\n"
|
15 |
|
671 |
msgid "LoginWP (Formerly Peter's Login Redirect)"
|
672 |
msgstr ""
|
673 |
|
674 |
+
#. #-#-#-#-# peters-login-redirect.pot (LoginWP (Formerly Peter's Login Redirect) 3.0.0.7) #-#-#-#-#
|
675 |
#. Plugin URI of the plugin/theme
|
676 |
+
#. #-#-#-#-# peters-login-redirect.pot (LoginWP (Formerly Peter's Login Redirect) 3.0.0.7) #-#-#-#-#
|
677 |
#. Author URI of the plugin/theme
|
678 |
msgid "https://loginwp.com"
|
679 |
msgstr ""
|
readme.txt
CHANGED
@@ -5,7 +5,7 @@ Tags: login, logout, redirect, login form, user registration, admin, administrat
|
|
5 |
Requires at least: 4.0
|
6 |
Requires PHP: 5.6
|
7 |
Tested up to: 5.9
|
8 |
-
Stable tag: 3.0.0.
|
9 |
License: GPL-2.0+
|
10 |
|
11 |
Redirect users to different locations after they log in, log out and register based on different conditions.
|
@@ -74,6 +74,9 @@ Login redirects not working? This plugin uses WordPress's standard login_redirec
|
|
74 |
|
75 |
== Changelog ==
|
76 |
|
|
|
|
|
|
|
77 |
= 3.0.0.6 =
|
78 |
* Compatibility with WP 5.9.
|
79 |
* Pro: Added [LearnDash](https://loginwp.com/?utm_source=wprepo&utm_medium=changelog&utm_campaign=3006#pro-conditions) Enrolled Course and User Group redirect conditions.
|
5 |
Requires at least: 4.0
|
6 |
Requires PHP: 5.6
|
7 |
Tested up to: 5.9
|
8 |
+
Stable tag: 3.0.0.7
|
9 |
License: GPL-2.0+
|
10 |
|
11 |
Redirect users to different locations after they log in, log out and register based on different conditions.
|
74 |
|
75 |
== Changelog ==
|
76 |
|
77 |
+
= 3.0.0.7 =
|
78 |
+
* Fix site and website url placeholder bug in multisite.
|
79 |
+
|
80 |
= 3.0.0.6 =
|
81 |
* Compatibility with WP 5.9.
|
82 |
* Pro: Added [LearnDash](https://loginwp.com/?utm_source=wprepo&utm_medium=changelog&utm_campaign=3006#pro-conditions) Enrolled Course and User Group redirect conditions.
|
src/core/src/Core.php
CHANGED
@@ -133,7 +133,7 @@ class Core
|
|
133 |
$rul_db_addresses = $wpdb->prefix . PTR_LOGINWP_DB_TABLE_NAME;
|
134 |
|
135 |
// necessary cos pro starts with version 4.
|
136 |
-
$cmp_current_version =
|
137 |
// Turn version into an integer for comparisons
|
138 |
$cmp_current_version = intval(str_replace('.', '', $cmp_current_version));
|
139 |
|
133 |
$rul_db_addresses = $wpdb->prefix . PTR_LOGINWP_DB_TABLE_NAME;
|
134 |
|
135 |
// necessary cos pro starts with version 4.
|
136 |
+
$cmp_current_version = preg_replace('/^4\.(.+)/', '3.$1', get_option('rul_version'));
|
137 |
// Turn version into an integer for comparisons
|
138 |
$cmp_current_version = intval(str_replace('.', '', $cmp_current_version));
|
139 |
|
src/core/src/Helpers.php
CHANGED
@@ -132,11 +132,11 @@ class Helpers
|
|
132 |
$variable_value = $user->user_nicename;
|
133 |
break;
|
134 |
case 'siteurl':
|
135 |
-
$variable_value =
|
136 |
break;
|
137 |
case 'homeurl':
|
138 |
case 'website_url':
|
139 |
-
$variable_value =
|
140 |
break;
|
141 |
// Returns the login referrer in order to redirect back to the same page
|
142 |
// Note that this will not work if the referrer is the same as the login processor (otherwise in a standard setup you'd redirect to the login form)
|
132 |
$variable_value = $user->user_nicename;
|
133 |
break;
|
134 |
case 'siteurl':
|
135 |
+
$variable_value = site_url();
|
136 |
break;
|
137 |
case 'homeurl':
|
138 |
case 'website_url':
|
139 |
+
$variable_value = home_url();
|
140 |
break;
|
141 |
// Returns the login referrer in order to redirect back to the same page
|
142 |
// Note that this will not work if the referrer is the same as the login processor (otherwise in a standard setup you'd redirect to the login form)
|
vendor/autoload.php
CHANGED
@@ -4,4 +4,4 @@
|
|
4 |
|
5 |
require_once __DIR__ . '/composer/autoload_real.php';
|
6 |
|
7 |
-
return
|
4 |
|
5 |
require_once __DIR__ . '/composer/autoload_real.php';
|
6 |
|
7 |
+
return ComposerAutoloaderInitadb733f385777bf0194affed92734036::getLoader();
|
vendor/composer/autoload_real.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
|
3 |
// autoload_real.php @generated by Composer
|
4 |
|
5 |
-
class
|
6 |
{
|
7 |
private static $loader;
|
8 |
|
@@ -24,15 +24,15 @@ class ComposerAutoloaderInit9f015b48a8bd360c3134cf1d5a23f83d
|
|
24 |
|
25 |
require __DIR__ . '/platform_check.php';
|
26 |
|
27 |
-
spl_autoload_register(array('
|
28 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
|
29 |
-
spl_autoload_unregister(array('
|
30 |
|
31 |
$useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
|
32 |
if ($useStaticLoader) {
|
33 |
require __DIR__ . '/autoload_static.php';
|
34 |
|
35 |
-
call_user_func(\Composer\Autoload\
|
36 |
} else {
|
37 |
$map = require __DIR__ . '/autoload_namespaces.php';
|
38 |
foreach ($map as $namespace => $path) {
|
@@ -53,19 +53,19 @@ class ComposerAutoloaderInit9f015b48a8bd360c3134cf1d5a23f83d
|
|
53 |
$loader->register(true);
|
54 |
|
55 |
if ($useStaticLoader) {
|
56 |
-
$includeFiles = Composer\Autoload\
|
57 |
} else {
|
58 |
$includeFiles = require __DIR__ . '/autoload_files.php';
|
59 |
}
|
60 |
foreach ($includeFiles as $fileIdentifier => $file) {
|
61 |
-
|
62 |
}
|
63 |
|
64 |
return $loader;
|
65 |
}
|
66 |
}
|
67 |
|
68 |
-
function
|
69 |
{
|
70 |
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
|
71 |
require $file;
|
2 |
|
3 |
// autoload_real.php @generated by Composer
|
4 |
|
5 |
+
class ComposerAutoloaderInitadb733f385777bf0194affed92734036
|
6 |
{
|
7 |
private static $loader;
|
8 |
|
24 |
|
25 |
require __DIR__ . '/platform_check.php';
|
26 |
|
27 |
+
spl_autoload_register(array('ComposerAutoloaderInitadb733f385777bf0194affed92734036', 'loadClassLoader'), true, true);
|
28 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
|
29 |
+
spl_autoload_unregister(array('ComposerAutoloaderInitadb733f385777bf0194affed92734036', 'loadClassLoader'));
|
30 |
|
31 |
$useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
|
32 |
if ($useStaticLoader) {
|
33 |
require __DIR__ . '/autoload_static.php';
|
34 |
|
35 |
+
call_user_func(\Composer\Autoload\ComposerStaticInitadb733f385777bf0194affed92734036::getInitializer($loader));
|
36 |
} else {
|
37 |
$map = require __DIR__ . '/autoload_namespaces.php';
|
38 |
foreach ($map as $namespace => $path) {
|
53 |
$loader->register(true);
|
54 |
|
55 |
if ($useStaticLoader) {
|
56 |
+
$includeFiles = Composer\Autoload\ComposerStaticInitadb733f385777bf0194affed92734036::$files;
|
57 |
} else {
|
58 |
$includeFiles = require __DIR__ . '/autoload_files.php';
|
59 |
}
|
60 |
foreach ($includeFiles as $fileIdentifier => $file) {
|
61 |
+
composerRequireadb733f385777bf0194affed92734036($fileIdentifier, $file);
|
62 |
}
|
63 |
|
64 |
return $loader;
|
65 |
}
|
66 |
}
|
67 |
|
68 |
+
function composerRequireadb733f385777bf0194affed92734036($fileIdentifier, $file)
|
69 |
{
|
70 |
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
|
71 |
require $file;
|
vendor/composer/autoload_static.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
|
5 |
namespace Composer\Autoload;
|
6 |
|
7 |
-
class
|
8 |
{
|
9 |
public static $files = array (
|
10 |
'7c119350ad5d791b1ae2d87a60e07ace' => __DIR__ . '/../..' . '/src/core/src/MoAdminNotice.php',
|
@@ -156,9 +156,9 @@ class ComposerStaticInit9f015b48a8bd360c3134cf1d5a23f83d
|
|
156 |
public static function getInitializer(ClassLoader $loader)
|
157 |
{
|
158 |
return \Closure::bind(function () use ($loader) {
|
159 |
-
$loader->prefixLengthsPsr4 =
|
160 |
-
$loader->prefixDirsPsr4 =
|
161 |
-
$loader->classMap =
|
162 |
|
163 |
}, null, ClassLoader::class);
|
164 |
}
|
4 |
|
5 |
namespace Composer\Autoload;
|
6 |
|
7 |
+
class ComposerStaticInitadb733f385777bf0194affed92734036
|
8 |
{
|
9 |
public static $files = array (
|
10 |
'7c119350ad5d791b1ae2d87a60e07ace' => __DIR__ . '/../..' . '/src/core/src/MoAdminNotice.php',
|
156 |
public static function getInitializer(ClassLoader $loader)
|
157 |
{
|
158 |
return \Closure::bind(function () use ($loader) {
|
159 |
+
$loader->prefixLengthsPsr4 = ComposerStaticInitadb733f385777bf0194affed92734036::$prefixLengthsPsr4;
|
160 |
+
$loader->prefixDirsPsr4 = ComposerStaticInitadb733f385777bf0194affed92734036::$prefixDirsPsr4;
|
161 |
+
$loader->classMap = ComposerStaticInitadb733f385777bf0194affed92734036::$classMap;
|
162 |
|
163 |
}, null, ClassLoader::class);
|
164 |
}
|
vendor/composer/installed.json
CHANGED
@@ -200,24 +200,24 @@
|
|
200 |
},
|
201 |
{
|
202 |
"name": "loginwp/core",
|
203 |
-
"version": "0.1.0-alpha.
|
204 |
-
"version_normalized": "0.1.0.0-
|
205 |
"source": {
|
206 |
"type": "git",
|
207 |
"url": "https://github.com/LoginWP/Core.git",
|
208 |
-
"reference": "
|
209 |
},
|
210 |
"dist": {
|
211 |
"type": "zip",
|
212 |
-
"url": "https://api.github.com/repos/LoginWP/Core/zipball/
|
213 |
-
"reference": "
|
214 |
"shasum": ""
|
215 |
},
|
216 |
"require": {
|
217 |
"collizo4sky/persist-admin-notices-dismissal": "^1.4",
|
218 |
"composer/installers": "~1.0"
|
219 |
},
|
220 |
-
"time": "
|
221 |
"type": "wordpress-plugin",
|
222 |
"installation-source": "dist",
|
223 |
"autoload": {
|
@@ -233,7 +233,7 @@
|
|
233 |
"description": "Core lib for LoginWP",
|
234 |
"support": {
|
235 |
"issues": "https://github.com/LoginWP/Core/issues",
|
236 |
-
"source": "https://github.com/LoginWP/Core/tree/0.1.0-alpha.
|
237 |
},
|
238 |
"install-path": "../../src/core"
|
239 |
}
|
200 |
},
|
201 |
{
|
202 |
"name": "loginwp/core",
|
203 |
+
"version": "0.1.0-alpha.1642606448",
|
204 |
+
"version_normalized": "0.1.0.0-alpha1642606448",
|
205 |
"source": {
|
206 |
"type": "git",
|
207 |
"url": "https://github.com/LoginWP/Core.git",
|
208 |
+
"reference": "988cc2f949fdea3ac99dcd2f5374b3a05254d456"
|
209 |
},
|
210 |
"dist": {
|
211 |
"type": "zip",
|
212 |
+
"url": "https://api.github.com/repos/LoginWP/Core/zipball/988cc2f949fdea3ac99dcd2f5374b3a05254d456",
|
213 |
+
"reference": "988cc2f949fdea3ac99dcd2f5374b3a05254d456",
|
214 |
"shasum": ""
|
215 |
},
|
216 |
"require": {
|
217 |
"collizo4sky/persist-admin-notices-dismissal": "^1.4",
|
218 |
"composer/installers": "~1.0"
|
219 |
},
|
220 |
+
"time": "2022-01-07T13:11:48+00:00",
|
221 |
"type": "wordpress-plugin",
|
222 |
"installation-source": "dist",
|
223 |
"autoload": {
|
233 |
"description": "Core lib for LoginWP",
|
234 |
"support": {
|
235 |
"issues": "https://github.com/LoginWP/Core/issues",
|
236 |
+
"source": "https://github.com/LoginWP/Core/tree/0.1.0-alpha.1642606448"
|
237 |
},
|
238 |
"install-path": "../../src/core"
|
239 |
}
|
vendor/composer/installed.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
'type' => 'library',
|
6 |
'install_path' => __DIR__ . '/../../',
|
7 |
'aliases' => array(),
|
8 |
-
'reference' => '
|
9 |
'name' => '__root__',
|
10 |
'dev' => false,
|
11 |
),
|
@@ -16,7 +16,7 @@
|
|
16 |
'type' => 'library',
|
17 |
'install_path' => __DIR__ . '/../../',
|
18 |
'aliases' => array(),
|
19 |
-
'reference' => '
|
20 |
'dev_requirement' => false,
|
21 |
),
|
22 |
'collizo4sky/persist-admin-notices-dismissal' => array(
|
@@ -38,12 +38,12 @@
|
|
38 |
'dev_requirement' => false,
|
39 |
),
|
40 |
'loginwp/core' => array(
|
41 |
-
'pretty_version' => '0.1.0-alpha.
|
42 |
-
'version' => '0.1.0.0-
|
43 |
'type' => 'wordpress-plugin',
|
44 |
'install_path' => __DIR__ . '/../../src/core',
|
45 |
'aliases' => array(),
|
46 |
-
'reference' => '
|
47 |
'dev_requirement' => false,
|
48 |
),
|
49 |
'roundcube/plugin-installer' => array(
|
5 |
'type' => 'library',
|
6 |
'install_path' => __DIR__ . '/../../',
|
7 |
'aliases' => array(),
|
8 |
+
'reference' => '51952dcfa180e10dc71336f0078ae602da311e33',
|
9 |
'name' => '__root__',
|
10 |
'dev' => false,
|
11 |
),
|
16 |
'type' => 'library',
|
17 |
'install_path' => __DIR__ . '/../../',
|
18 |
'aliases' => array(),
|
19 |
+
'reference' => '51952dcfa180e10dc71336f0078ae602da311e33',
|
20 |
'dev_requirement' => false,
|
21 |
),
|
22 |
'collizo4sky/persist-admin-notices-dismissal' => array(
|
38 |
'dev_requirement' => false,
|
39 |
),
|
40 |
'loginwp/core' => array(
|
41 |
+
'pretty_version' => '0.1.0-alpha.1642606448',
|
42 |
+
'version' => '0.1.0.0-alpha1642606448',
|
43 |
'type' => 'wordpress-plugin',
|
44 |
'install_path' => __DIR__ . '/../../src/core',
|
45 |
'aliases' => array(),
|
46 |
+
'reference' => '988cc2f949fdea3ac99dcd2f5374b3a05254d456',
|
47 |
'dev_requirement' => false,
|
48 |
),
|
49 |
'roundcube/plugin-installer' => array(
|
wplogin_redirect.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: LoginWP (Formerly Peter's Login Redirect)
|
4 |
Plugin URI: https://loginwp.com
|
5 |
Description: Redirect users to different URLs based on their role, capability and more.
|
6 |
-
Version: 3.0.0.
|
7 |
Author: LoginWP Team
|
8 |
Author URI: https://loginwp.com
|
9 |
Text Domain: peters-login-redirect
|
@@ -16,7 +16,7 @@ use LoginWP\Core\Core;
|
|
16 |
require __DIR__ . '/vendor/autoload.php';
|
17 |
|
18 |
define('PTR_LOGINWP_SYSTEM_FILE_PATH', __FILE__);
|
19 |
-
define('PTR_LOGINWP_VERSION_NUMBER', '3.0.0.
|
20 |
|
21 |
add_action('init', function () {
|
22 |
load_plugin_textdomain('peters-login-redirect', false, dirname(plugin_basename(__FILE__)) . '/languages');
|
3 |
Plugin Name: LoginWP (Formerly Peter's Login Redirect)
|
4 |
Plugin URI: https://loginwp.com
|
5 |
Description: Redirect users to different URLs based on their role, capability and more.
|
6 |
+
Version: 3.0.0.7
|
7 |
Author: LoginWP Team
|
8 |
Author URI: https://loginwp.com
|
9 |
Text Domain: peters-login-redirect
|
16 |
require __DIR__ . '/vendor/autoload.php';
|
17 |
|
18 |
define('PTR_LOGINWP_SYSTEM_FILE_PATH', __FILE__);
|
19 |
+
define('PTR_LOGINWP_VERSION_NUMBER', '3.0.0.7');
|
20 |
|
21 |
add_action('init', function () {
|
22 |
load_plugin_textdomain('peters-login-redirect', false, dirname(plugin_basename(__FILE__)) . '/languages');
|