Peter’s Login Redirect - Version 3.0.1.0

Version Description

  • Added TutorLMS integration.
  • Improved admin page loading speed.
Download this release

Release Info

Developer Collizo4sky
Plugin Icon 128x128 Peter’s Login Redirect
Version 3.0.1.0
Comparing to
See all releases

Code changes from version 3.0.0.8 to 3.0.1.0

changelog.txt CHANGED
@@ -1,5 +1,9 @@
1
  == Changelog ==
2
 
 
 
 
 
3
  = 3.0.0.8 =
4
  * Added noncache to temporary redirects.
5
  * Added user_id placeholder.
1
  == Changelog ==
2
 
3
+ = 3.0.1.0 =
4
+ * Added [TutorLMS integration](https://loginwp.com/?utm_source=wprepo&utm_medium=changelog&utm_campaign=4010#pro-conditions).
5
+ * Improved admin page loading speed.
6
+
7
  = 3.0.0.8 =
8
  * Added noncache to temporary redirects.
9
  * Added user_id placeholder.
languages/peters-login-redirect.pot CHANGED
@@ -2,10 +2,9 @@
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.8\n"
6
- "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/peters-login-"
7
- "redirect\n"
8
- "POT-Creation-Date: 2022-04-05 12:30:28+00:00\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
@@ -37,41 +36,33 @@ msgstr ""
37
  msgid "Need Support?"
38
  msgstr ""
39
 
40
- #: src/core/src/Admin/AbstractSettingsPage.php:122
41
- msgid ""
42
- "Enhance the power of LoginWP with the Pro version featuring integrations "
43
- "with many plugins. %sLearn more%s"
44
  msgstr ""
45
 
46
- #: src/core/src/Admin/AbstractSettingsPage.php:129
47
  msgid "Redirect to referrer or previous page"
48
  msgstr ""
49
 
50
- #: src/core/src/Admin/AbstractSettingsPage.php:130
51
  msgid "Redirect to currently viewing page"
52
  msgstr ""
53
 
54
- #: src/core/src/Admin/AbstractSettingsPage.php:138
55
- #: src/core/src/Admin/views/view.pro-conditions.php:34
56
  msgid "Get LoginWP Pro →"
57
  msgstr ""
58
 
59
- #: src/core/src/Admin/AbstractSettingsPage.php:156
60
- msgid ""
61
- "Whether you need help or have a new feature request, let us know. %sRequest "
62
- "Support%s"
63
  msgstr ""
64
 
65
- #: src/core/src/Admin/AbstractSettingsPage.php:164
66
- msgid ""
67
- "Detailed documentation is also available on the plugin website. %sView "
68
- "Knowledge Base%s"
69
  msgstr ""
70
 
71
- #: src/core/src/Admin/AbstractSettingsPage.php:172
72
- msgid ""
73
- "If you are enjoying LoginWP and find it useful, please consider leaving a "
74
- "★★★★★ review on WordPress.org. %sLeave a Review%s"
75
  msgstr ""
76
 
77
  #: src/core/src/Admin/Admin.php:39
@@ -87,9 +78,7 @@ msgid "Are you sure?"
87
  msgstr ""
88
 
89
  #: src/core/src/Admin/Admin.php:112
90
- msgid ""
91
- "Thank you for using LoginWP. Please rate the plugin %1$s on %2$sWordPress.org"
92
- "%3$s to help us spread the word."
93
  msgstr ""
94
 
95
  #: src/core/src/Admin/Admin.php:133 src/core/src/Admin/SettingsPage.php:29
@@ -117,22 +106,16 @@ msgstr ""
117
  msgid "Support"
118
  msgstr ""
119
 
120
- #: src/core/src/Admin/Admin.php:165 src/core/src/Admin/RedirectionsPage.php:471
121
  msgid "Upgrade to PRO"
122
  msgstr ""
123
 
124
  #: src/core/src/Admin/Admin.php:183
125
- msgid ""
126
- "Important news! %1$sPeters Login Redirect%2$s has been rebranded to "
127
- "%1$sLoginWP%2$s with a new UI. %3$sCheck It Out%5$s | %4$sDismiss Notice%5$s"
128
  msgstr ""
129
 
130
  #: src/core/src/Admin/Admin.php:213
131
- msgid ""
132
- "Hey, I noticed you have been using LoginWP (Formerly Peter's Login Redirect) "
133
- "for a while now - that's awesome! Could you please do me a BIG favor and "
134
- "give it a %1$s5-star rating on WordPress?%2$s This will help us spread the "
135
- "word and boost our motivation - thanks!"
136
  msgstr ""
137
 
138
  #: src/core/src/Admin/Admin.php:217
@@ -152,9 +135,7 @@ msgid "Could not install plugin. Please download and install manually."
152
  msgstr ""
153
 
154
  #: src/core/src/Admin/ProfilePress.php:59
155
- msgid ""
156
- "Could not install addon. Please download from wpforms.com and install "
157
- "manually."
158
  msgstr ""
159
 
160
  #: src/core/src/Admin/ProfilePress.php:125
@@ -190,17 +171,15 @@ msgid "Login Forms"
190
  msgstr ""
191
 
192
  #. translators: %s - Lite plugin download URL.
 
193
  #: src/core/src/Admin/ProfilePress.php:207
194
- msgid ""
195
- "Could not install plugin. Please <a href=\"%s\">download</a> and install "
196
- "manually."
197
  msgstr ""
198
 
199
  #. translators: %s - Lite plugin download URL.
 
200
  #: src/core/src/Admin/ProfilePress.php:219
201
- msgid ""
202
- "Could not activate plugin. Please activate from the <a href=\"%s\">Plugins "
203
- "page</a>."
204
  msgstr ""
205
 
206
  #: src/core/src/Admin/ProfilePress.php:230
@@ -245,10 +224,7 @@ msgid "Modern Custom Login Forms & Membership Plugin"
245
  msgstr ""
246
 
247
  #: src/core/src/Admin/ProfilePress.php:477
248
- msgid ""
249
- "ProfilePress lets you create beautiful frontend custom login forms, "
250
- "registration forms, member directories and user profiles. You can also "
251
- "protect sensitive contents and control user access."
252
  msgstr ""
253
 
254
  #: src/core/src/Admin/ProfilePress.php:500
@@ -256,33 +232,23 @@ msgid "ProfilePress screenshot"
256
  msgstr ""
257
 
258
  #: src/core/src/Admin/ProfilePress.php:501
259
- msgid ""
260
- "Beautiful templates for login, registration, password reset & edit profile "
261
- "edit forms."
262
  msgstr ""
263
 
264
  #: src/core/src/Admin/ProfilePress.php:502
265
- msgid ""
266
- "Fine-grained control over what content your users can see based on your "
267
- "protection rules."
268
  msgstr ""
269
 
270
  #: src/core/src/Admin/ProfilePress.php:503
271
- msgid ""
272
- "Restrict access to pages, posts, custom post types, categories, tags and "
273
- "custom taxonomies."
274
  msgstr ""
275
 
276
  #: src/core/src/Admin/ProfilePress.php:504
277
- msgid ""
278
- "Add beautiful user profiles to your site that can be customised to your "
279
- "specific requirements."
280
  msgstr ""
281
 
282
  #: src/core/src/Admin/ProfilePress.php:505
283
- msgid ""
284
- "Create searchable and filterable member directories with avatars and user "
285
- "info allowing users to find each other."
286
  msgstr ""
287
 
288
  #: src/core/src/Admin/ProfilePress.php:533
@@ -391,7 +357,7 @@ msgid "Redirections"
391
  msgstr ""
392
 
393
  #: src/core/src/Admin/RedirectionsPage.php:58
394
- #: src/core/src/Admin/RedirectionsPage.php:114
395
  msgid "Rules"
396
  msgstr ""
397
 
@@ -399,99 +365,97 @@ msgstr ""
399
  msgid "Standard"
400
  msgstr ""
401
 
402
- #: src/core/src/Admin/RedirectionsPage.php:76
403
  msgid "Username"
404
  msgstr ""
405
 
406
- #: src/core/src/Admin/RedirectionsPage.php:83
407
  msgid "User Role"
408
  msgstr ""
409
 
410
- #: src/core/src/Admin/RedirectionsPage.php:90
411
  msgid "User Capability"
412
  msgstr ""
413
 
414
- #: src/core/src/Admin/RedirectionsPage.php:129
415
  msgid "Add New"
416
  msgstr ""
417
 
418
- #: src/core/src/Admin/RedirectionsPage.php:133
419
  msgid "Go Back"
420
  msgstr ""
421
 
422
- #: src/core/src/Admin/RedirectionsPage.php:146
423
  msgid "Redirection Rules"
424
  msgstr ""
425
 
426
- #: src/core/src/Admin/RedirectionsPage.php:202
427
  msgid "Select..."
428
  msgstr ""
429
 
430
- #: src/core/src/Admin/RedirectionsPage.php:245
431
  msgid "Redirect rule saved successfully"
432
  msgstr ""
433
 
434
- #: src/core/src/Admin/RedirectionsPage.php:248
435
  msgid "Changes saved"
436
  msgstr ""
437
 
438
- #: src/core/src/Admin/RedirectionsPage.php:257
439
  msgid "Redirect rule deleted"
440
  msgstr ""
441
 
442
- #: src/core/src/Admin/RedirectionsPage.php:274
443
  msgid "ERROR: Condition value not specified"
444
  msgstr ""
445
 
446
- #: src/core/src/Admin/RedirectionsPage.php:278
447
  msgid "ERROR: No Login or Logout URL specified"
448
  msgstr ""
449
 
450
- #: src/core/src/Admin/RedirectionsPage.php:282
451
  msgid "ERROR: Non-existent username submitted"
452
  msgstr ""
453
 
454
- #: src/core/src/Admin/RedirectionsPage.php:286
455
  msgid "ERROR: Non-existent role submitted"
456
  msgstr ""
457
 
458
- #: src/core/src/Admin/RedirectionsPage.php:290
459
  msgid "ERROR: Non-existent level submitted"
460
  msgstr ""
461
 
462
- #: src/core/src/Admin/RedirectionsPage.php:323
463
  msgid "ERROR: Unknown error editing redirect rule"
464
  msgstr ""
465
 
466
- #: src/core/src/Admin/RedirectionsPage.php:347
467
  msgid "ERROR: Unknown error when adding the redirect rule"
468
  msgstr ""
469
 
470
- #: src/core/src/Admin/RedirectionsPage.php:378
471
- #: src/core/src/Admin/RedirectionsPage.php:401
472
  msgid "ERROR: Unknown problem updating URL"
473
  msgstr ""
474
 
475
- #: src/core/src/Admin/RedirectionsPage.php:448
476
  msgid "User ID of user"
477
  msgstr ""
478
 
479
- #: src/core/src/Admin/RedirectionsPage.php:449
480
  msgid "Username of user"
481
  msgstr ""
482
 
483
- #: src/core/src/Admin/RedirectionsPage.php:450
484
  msgid "Author URL slug or user nicename"
485
  msgstr ""
486
 
487
- #: src/core/src/Admin/RedirectionsPage.php:451
488
  msgid "Website URL"
489
  msgstr ""
490
 
491
- #: src/core/src/Admin/RedirectionsPage.php:466
492
- msgid ""
493
- "With %sLoginWP PRO%s, you can redirect users to the current page they are "
494
- "logging in from or back to the previous (referrer) page after login."
495
  msgstr ""
496
 
497
  #: src/core/src/Admin/SettingsPage.php:26
@@ -513,9 +477,7 @@ msgid "Activate"
513
  msgstr ""
514
 
515
  #: src/core/src/Admin/SettingsPage.php:66
516
- msgid ""
517
- "Check this box if you would like LoginWP to completely remove all of its "
518
- "data when uninstalled."
519
  msgstr ""
520
 
521
  #: src/core/src/Admin/SettingsPageApi.php:857
@@ -579,9 +541,7 @@ msgid "Redirect Settings"
579
  msgstr ""
580
 
581
  #: src/core/src/Admin/views/view.bottom-settings.php:86
582
- msgid ""
583
- "Allow a POST or GET &#34;redirect_to&#34; variable to take redirect "
584
- "precedence"
585
  msgstr ""
586
 
587
  #: src/core/src/Admin/views/view.bottom-settings.php:92
@@ -595,9 +555,7 @@ msgid "No"
595
  msgstr ""
596
 
597
  #: src/core/src/Admin/views/view.bottom-settings.php:101
598
- msgid ""
599
- "Allow a POST or GET &#34;redirect_to&#34; logout variable to take redirect "
600
- "precedence"
601
  msgstr ""
602
 
603
  #: src/core/src/Admin/views/view.condition-rule.php:15
@@ -610,6 +568,7 @@ msgstr ""
610
 
611
  #: src/core/src/Admin/views/view.pro-conditions.php:4
612
  #: src/core/src/Admin/views/view.pro-conditions.php:20
 
613
  msgid "Enrolled Course"
614
  msgstr ""
615
 
@@ -654,9 +613,7 @@ msgid "Site Admin"
654
  msgstr ""
655
 
656
  #: src/core/src/MoAdminNotice.php:64
657
- msgid ""
658
- "Free optin form plugin that will %1$sincrease your email list subscribers"
659
- "%2$s and keep them engaged with %1$sautomated and schedule newsletters%2$s."
660
  msgstr ""
661
 
662
  #: src/core/src/MoAdminNotice.php:73
@@ -670,23 +627,22 @@ msgstr ""
670
  #: src/core/src/MoAdminNotice.php:87
671
  msgid "Dismiss this notice"
672
  msgstr ""
673
-
674
  #. Plugin Name of the plugin/theme
675
  msgid "LoginWP (Formerly Peter's Login Redirect)"
676
  msgstr ""
677
 
678
- #. #-#-#-#-# peters-login-redirect.pot (LoginWP (Formerly Peter's Login Redirect) 3.0.0.8) #-#-#-#-#
679
  #. Plugin URI of the plugin/theme
680
- #. #-#-#-#-# peters-login-redirect.pot (LoginWP (Formerly Peter's Login Redirect) 3.0.0.8) #-#-#-#-#
681
- #. Author URI of the plugin/theme
682
  msgid "https://loginwp.com"
683
  msgstr ""
684
 
685
  #. Description of the plugin/theme
686
- msgid ""
687
- "Redirect users to different URLs based on their role, capability and more."
688
  msgstr ""
689
 
690
  #. Author of the plugin/theme
691
  msgid "LoginWP Team"
692
  msgstr ""
 
 
 
 
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.1.0\n"
6
+ "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/peters-login-redirect\n"
7
+ "POT-Creation-Date: 2022-05-25 19:09:18+00:00\n"
 
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=UTF-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
36
  msgid "Need Support?"
37
  msgstr ""
38
 
39
+ #: src/core/src/Admin/AbstractSettingsPage.php:123
40
+ msgid "Enhance the power of LoginWP with the Pro version featuring integrations with many plugins. %sLearn more%s"
 
 
41
  msgstr ""
42
 
43
+ #: src/core/src/Admin/AbstractSettingsPage.php:130
44
  msgid "Redirect to referrer or previous page"
45
  msgstr ""
46
 
47
+ #: src/core/src/Admin/AbstractSettingsPage.php:131
48
  msgid "Redirect to currently viewing page"
49
  msgstr ""
50
 
51
+ #: src/core/src/Admin/AbstractSettingsPage.php:139
52
+ #: src/core/src/Admin/views/view.pro-conditions.php:37
53
  msgid "Get LoginWP Pro →"
54
  msgstr ""
55
 
56
+ #: src/core/src/Admin/AbstractSettingsPage.php:157
57
+ msgid "Whether you need help or have a new feature request, let us know. %sRequest Support%s"
 
 
58
  msgstr ""
59
 
60
+ #: src/core/src/Admin/AbstractSettingsPage.php:165
61
+ msgid "Detailed documentation is also available on the plugin website. %sView Knowledge Base%s"
 
 
62
  msgstr ""
63
 
64
+ #: src/core/src/Admin/AbstractSettingsPage.php:173
65
+ msgid "If you are enjoying LoginWP and find it useful, please consider leaving a ★★★★★ review on WordPress.org. %sLeave a Review%s"
 
 
66
  msgstr ""
67
 
68
  #: src/core/src/Admin/Admin.php:39
78
  msgstr ""
79
 
80
  #: src/core/src/Admin/Admin.php:112
81
+ msgid "Thank you for using LoginWP. Please rate the plugin %1$s on %2$sWordPress.org%3$s to help us spread the word."
 
 
82
  msgstr ""
83
 
84
  #: src/core/src/Admin/Admin.php:133 src/core/src/Admin/SettingsPage.php:29
106
  msgid "Support"
107
  msgstr ""
108
 
109
+ #: src/core/src/Admin/Admin.php:165 src/core/src/Admin/RedirectionsPage.php:479
110
  msgid "Upgrade to PRO"
111
  msgstr ""
112
 
113
  #: src/core/src/Admin/Admin.php:183
114
+ msgid "Important news! %1$sPeters Login Redirect%2$s has been rebranded to %1$sLoginWP%2$s with a new UI. %3$sCheck It Out%5$s | %4$sDismiss Notice%5$s"
 
 
115
  msgstr ""
116
 
117
  #: src/core/src/Admin/Admin.php:213
118
+ msgid "Hey, I noticed you have been using LoginWP (Formerly Peter's Login Redirect) for a while now - that's awesome! Could you please do me a BIG favor and give it a %1$s5-star rating on WordPress?%2$s This will help us spread the word and boost our motivation - thanks!"
 
 
 
 
119
  msgstr ""
120
 
121
  #: src/core/src/Admin/Admin.php:217
135
  msgstr ""
136
 
137
  #: src/core/src/Admin/ProfilePress.php:59
138
+ msgid "Could not install addon. Please download from wpforms.com and install manually."
 
 
139
  msgstr ""
140
 
141
  #: src/core/src/Admin/ProfilePress.php:125
171
  msgstr ""
172
 
173
  #. translators: %s - Lite plugin download URL.
174
+
175
  #: src/core/src/Admin/ProfilePress.php:207
176
+ msgid "Could not install plugin. Please <a href=\"%s\">download</a> and install manually."
 
 
177
  msgstr ""
178
 
179
  #. translators: %s - Lite plugin download URL.
180
+
181
  #: src/core/src/Admin/ProfilePress.php:219
182
+ msgid "Could not activate plugin. Please activate from the <a href=\"%s\">Plugins page</a>."
 
 
183
  msgstr ""
184
 
185
  #: src/core/src/Admin/ProfilePress.php:230
224
  msgstr ""
225
 
226
  #: src/core/src/Admin/ProfilePress.php:477
227
+ msgid "ProfilePress lets you create beautiful frontend custom login forms, registration forms, member directories and user profiles. You can also protect sensitive contents and control user access."
 
 
 
228
  msgstr ""
229
 
230
  #: src/core/src/Admin/ProfilePress.php:500
232
  msgstr ""
233
 
234
  #: src/core/src/Admin/ProfilePress.php:501
235
+ msgid "Beautiful templates for login, registration, password reset & edit profile edit forms."
 
 
236
  msgstr ""
237
 
238
  #: src/core/src/Admin/ProfilePress.php:502
239
+ msgid "Fine-grained control over what content your users can see based on your protection rules."
 
 
240
  msgstr ""
241
 
242
  #: src/core/src/Admin/ProfilePress.php:503
243
+ msgid "Restrict access to pages, posts, custom post types, categories, tags and custom taxonomies."
 
 
244
  msgstr ""
245
 
246
  #: src/core/src/Admin/ProfilePress.php:504
247
+ msgid "Add beautiful user profiles to your site that can be customised to your specific requirements."
 
 
248
  msgstr ""
249
 
250
  #: src/core/src/Admin/ProfilePress.php:505
251
+ msgid "Create searchable and filterable member directories with avatars and user info allowing users to find each other."
 
 
252
  msgstr ""
253
 
254
  #: src/core/src/Admin/ProfilePress.php:533
357
  msgstr ""
358
 
359
  #: src/core/src/Admin/RedirectionsPage.php:58
360
+ #: src/core/src/Admin/RedirectionsPage.php:121
361
  msgid "Rules"
362
  msgstr ""
363
 
365
  msgid "Standard"
366
  msgstr ""
367
 
368
+ #: src/core/src/Admin/RedirectionsPage.php:80
369
  msgid "Username"
370
  msgstr ""
371
 
372
+ #: src/core/src/Admin/RedirectionsPage.php:87
373
  msgid "User Role"
374
  msgstr ""
375
 
376
+ #: src/core/src/Admin/RedirectionsPage.php:94
377
  msgid "User Capability"
378
  msgstr ""
379
 
380
+ #: src/core/src/Admin/RedirectionsPage.php:136
381
  msgid "Add New"
382
  msgstr ""
383
 
384
+ #: src/core/src/Admin/RedirectionsPage.php:140
385
  msgid "Go Back"
386
  msgstr ""
387
 
388
+ #: src/core/src/Admin/RedirectionsPage.php:153
389
  msgid "Redirection Rules"
390
  msgstr ""
391
 
392
+ #: src/core/src/Admin/RedirectionsPage.php:209
393
  msgid "Select..."
394
  msgstr ""
395
 
396
+ #: src/core/src/Admin/RedirectionsPage.php:253
397
  msgid "Redirect rule saved successfully"
398
  msgstr ""
399
 
400
+ #: src/core/src/Admin/RedirectionsPage.php:256
401
  msgid "Changes saved"
402
  msgstr ""
403
 
404
+ #: src/core/src/Admin/RedirectionsPage.php:265
405
  msgid "Redirect rule deleted"
406
  msgstr ""
407
 
408
+ #: src/core/src/Admin/RedirectionsPage.php:282
409
  msgid "ERROR: Condition value not specified"
410
  msgstr ""
411
 
412
+ #: src/core/src/Admin/RedirectionsPage.php:286
413
  msgid "ERROR: No Login or Logout URL specified"
414
  msgstr ""
415
 
416
+ #: src/core/src/Admin/RedirectionsPage.php:290
417
  msgid "ERROR: Non-existent username submitted"
418
  msgstr ""
419
 
420
+ #: src/core/src/Admin/RedirectionsPage.php:294
421
  msgid "ERROR: Non-existent role submitted"
422
  msgstr ""
423
 
424
+ #: src/core/src/Admin/RedirectionsPage.php:298
425
  msgid "ERROR: Non-existent level submitted"
426
  msgstr ""
427
 
428
+ #: src/core/src/Admin/RedirectionsPage.php:331
429
  msgid "ERROR: Unknown error editing redirect rule"
430
  msgstr ""
431
 
432
+ #: src/core/src/Admin/RedirectionsPage.php:355
433
  msgid "ERROR: Unknown error when adding the redirect rule"
434
  msgstr ""
435
 
436
+ #: src/core/src/Admin/RedirectionsPage.php:386
437
+ #: src/core/src/Admin/RedirectionsPage.php:409
438
  msgid "ERROR: Unknown problem updating URL"
439
  msgstr ""
440
 
441
+ #: src/core/src/Admin/RedirectionsPage.php:456
442
  msgid "User ID of user"
443
  msgstr ""
444
 
445
+ #: src/core/src/Admin/RedirectionsPage.php:457
446
  msgid "Username of user"
447
  msgstr ""
448
 
449
+ #: src/core/src/Admin/RedirectionsPage.php:458
450
  msgid "Author URL slug or user nicename"
451
  msgstr ""
452
 
453
+ #: src/core/src/Admin/RedirectionsPage.php:459
454
  msgid "Website URL"
455
  msgstr ""
456
 
457
+ #: src/core/src/Admin/RedirectionsPage.php:474
458
+ msgid "With %sLoginWP PRO%s, you can redirect users to the current page they are logging in from or back to the previous (referrer) page after login."
 
 
459
  msgstr ""
460
 
461
  #: src/core/src/Admin/SettingsPage.php:26
477
  msgstr ""
478
 
479
  #: src/core/src/Admin/SettingsPage.php:66
480
+ msgid "Check this box if you would like LoginWP to completely remove all of its data when uninstalled."
 
 
481
  msgstr ""
482
 
483
  #: src/core/src/Admin/SettingsPageApi.php:857
541
  msgstr ""
542
 
543
  #: src/core/src/Admin/views/view.bottom-settings.php:86
544
+ msgid "Allow a POST or GET &#34;redirect_to&#34; variable to take redirect precedence"
 
 
545
  msgstr ""
546
 
547
  #: src/core/src/Admin/views/view.bottom-settings.php:92
555
  msgstr ""
556
 
557
  #: src/core/src/Admin/views/view.bottom-settings.php:101
558
+ msgid "Allow a POST or GET &#34;redirect_to&#34; logout variable to take redirect precedence"
 
 
559
  msgstr ""
560
 
561
  #: src/core/src/Admin/views/view.condition-rule.php:15
568
 
569
  #: src/core/src/Admin/views/view.pro-conditions.php:4
570
  #: src/core/src/Admin/views/view.pro-conditions.php:20
571
+ #: src/core/src/Admin/views/view.pro-conditions.php:24
572
  msgid "Enrolled Course"
573
  msgstr ""
574
 
613
  msgstr ""
614
 
615
  #: src/core/src/MoAdminNotice.php:64
616
+ msgid "Free optin form plugin that will %1$sincrease your email list subscribers%2$s and keep them engaged with %1$sautomated and schedule newsletters%2$s."
 
 
617
  msgstr ""
618
 
619
  #: src/core/src/MoAdminNotice.php:73
627
  #: src/core/src/MoAdminNotice.php:87
628
  msgid "Dismiss this notice"
629
  msgstr ""
 
630
  #. Plugin Name of the plugin/theme
631
  msgid "LoginWP (Formerly Peter's Login Redirect)"
632
  msgstr ""
633
 
 
634
  #. Plugin URI of the plugin/theme
 
 
635
  msgid "https://loginwp.com"
636
  msgstr ""
637
 
638
  #. Description of the plugin/theme
639
+ msgid "Redirect users to different URLs based on their role, capability and more."
 
640
  msgstr ""
641
 
642
  #. Author of the plugin/theme
643
  msgid "LoginWP Team"
644
  msgstr ""
645
+
646
+ #. Author URI of the plugin/theme
647
+ msgid "https://loginwp.com"
648
+ msgstr ""
readme.txt CHANGED
@@ -2,10 +2,10 @@
2
  Contributors: properfraction, collizo4sky
3
  Donate link: https://loginwp.com/pricing
4
  Tags: login, logout, redirect, login form, user registration, admin, administration, dashboard, users, authentication
5
- Requires at least: 4.0
6
  Requires PHP: 5.6
7
- Tested up to: 5.9
8
- Stable tag: 3.0.0.8
9
  License: GPL-2.0+
10
 
11
  Redirect users to different locations after they log in, log out and register based on different conditions.
@@ -31,6 +31,7 @@ This is the lite version that works with the default WordPress login page and li
31
  * [WPForms](https://loginwp.com/?utm_source=wprepo&utm_medium=link&utm_campaign=liteversion#pro-integrations)
32
  * [LearnDash](https://loginwp.com/?utm_source=wprepo&utm_medium=link&utm_campaign=liteversion#pro-integrations)
33
  * [LifterLMS](https://loginwp.com/?utm_source=wprepo&utm_medium=link&utm_campaign=liteversion#pro-integrations)
 
34
  * [ProfilePress](https://loginwp.com/?utm_source=wprepo&utm_medium=link&utm_campaign=liteversion#pro-integrations)
35
  * [MemberPress](https://loginwp.com/?utm_source=wprepo&utm_medium=link&utm_campaign=liteversion#pro-integrations)
36
  * [MemberMouse](https://loginwp.com/?utm_source=wprepo&utm_medium=link&utm_campaign=liteversion#pro-integrations)
@@ -74,6 +75,10 @@ Login redirects not working? This plugin uses WordPress's standard login_redirec
74
 
75
  == Changelog ==
76
 
 
 
 
 
77
  = 3.0.0.8 =
78
  * Added noncache to temporary redirects.
79
  * Added user_id placeholder.
2
  Contributors: properfraction, collizo4sky
3
  Donate link: https://loginwp.com/pricing
4
  Tags: login, logout, redirect, login form, user registration, admin, administration, dashboard, users, authentication
5
+ Requires at least: 4.7
6
  Requires PHP: 5.6
7
+ Tested up to: 6.0
8
+ Stable tag: 3.0.1.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.
31
  * [WPForms](https://loginwp.com/?utm_source=wprepo&utm_medium=link&utm_campaign=liteversion#pro-integrations)
32
  * [LearnDash](https://loginwp.com/?utm_source=wprepo&utm_medium=link&utm_campaign=liteversion#pro-integrations)
33
  * [LifterLMS](https://loginwp.com/?utm_source=wprepo&utm_medium=link&utm_campaign=liteversion#pro-integrations)
34
+ * [Tutor LMS](https://loginwp.com/?utm_source=wprepo&utm_medium=link&utm_campaign=liteversion#pro-integrations)
35
  * [ProfilePress](https://loginwp.com/?utm_source=wprepo&utm_medium=link&utm_campaign=liteversion#pro-integrations)
36
  * [MemberPress](https://loginwp.com/?utm_source=wprepo&utm_medium=link&utm_campaign=liteversion#pro-integrations)
37
  * [MemberMouse](https://loginwp.com/?utm_source=wprepo&utm_medium=link&utm_campaign=liteversion#pro-integrations)
75
 
76
  == Changelog ==
77
 
78
+ = 3.0.1.0 =
79
+ * Added [TutorLMS integration](https://loginwp.com/?utm_source=wprepo&utm_medium=changelog&utm_campaign=4010#pro-conditions).
80
+ * Improved admin page loading speed.
81
+
82
  = 3.0.0.8 =
83
  * Added noncache to temporary redirects.
84
  * Added user_id placeholder.
src/core/src/Admin/AbstractSettingsPage.php CHANGED
@@ -107,6 +107,7 @@ abstract class AbstractSettingsPage
107
  'Restrict Content Pro',
108
  'LifterLMS',
109
  'Easy Digital Downloads',
 
110
  'Ultimate Member',
111
  'WP User Frontend',
112
  'WP User Manager',
107
  'Restrict Content Pro',
108
  'LifterLMS',
109
  'Easy Digital Downloads',
110
+ 'Tutor LMS',
111
  'Ultimate Member',
112
  'WP User Frontend',
113
  'WP User Manager',
src/core/src/Admin/RedirectionsPage.php CHANGED
@@ -69,29 +69,36 @@ class RedirectionsPage extends AbstractSettingsPage
69
 
70
  public static function get_rule_conditions()
71
  {
72
- return apply_filters('rul_rule_conditions', [
73
- [
74
- 'id' => 'user',
75
- 'category' => self::STANDARD_CATEGORY,
76
- 'label' => esc_html__('Username', 'peters-login-redirect'),
77
- 'options' => Helpers::username_list(),
78
- 'order_support' => false
79
- ],
80
- [
81
- 'id' => 'role',
82
- 'category' => self::STANDARD_CATEGORY,
83
- 'label' => esc_html__('User Role', 'peters-login-redirect'),
84
- 'options' => Helpers::user_role_list(),
85
- 'order_support' => true
86
- ],
87
- [
88
- 'id' => 'level',
89
- 'category' => self::STANDARD_CATEGORY,
90
- 'label' => esc_html__('User Capability', 'peters-login-redirect'),
91
- 'options' => Helpers::capability_list(),
92
- 'order_support' => true
93
- ]
94
- ]);
 
 
 
 
 
 
 
95
  }
96
 
97
  public static function get_rule_conditions_by_category($category)
@@ -214,6 +221,7 @@ class RedirectionsPage extends AbstractSettingsPage
214
  $order_support_conditions = wp_list_filter(self::get_rule_conditions(), ['order_support' => true]);
215
 
216
  if ( ! empty($order_support_conditions)) {
 
217
  $order_support_conditions = array_reduce($order_support_conditions, function ($carry, $item) {
218
  $carry[] = $item['id'];
219
 
69
 
70
  public static function get_rule_conditions()
71
  {
72
+ static $cache = [];
73
+
74
+ if (empty($cache)) {
75
+
76
+ $cache = apply_filters('rul_rule_conditions', [
77
+ [
78
+ 'id' => 'user',
79
+ 'category' => self::STANDARD_CATEGORY,
80
+ 'label' => esc_html__('Username', 'peters-login-redirect'),
81
+ 'options' => Helpers::username_list(),
82
+ 'order_support' => false
83
+ ],
84
+ [
85
+ 'id' => 'role',
86
+ 'category' => self::STANDARD_CATEGORY,
87
+ 'label' => esc_html__('User Role', 'peters-login-redirect'),
88
+ 'options' => Helpers::user_role_list(),
89
+ 'order_support' => true
90
+ ],
91
+ [
92
+ 'id' => 'level',
93
+ 'category' => self::STANDARD_CATEGORY,
94
+ 'label' => esc_html__('User Capability', 'peters-login-redirect'),
95
+ 'options' => Helpers::capability_list(),
96
+ 'order_support' => true
97
+ ]
98
+ ]);
99
+ }
100
+
101
+ return $cache;
102
  }
103
 
104
  public static function get_rule_conditions_by_category($category)
221
  $order_support_conditions = wp_list_filter(self::get_rule_conditions(), ['order_support' => true]);
222
 
223
  if ( ! empty($order_support_conditions)) {
224
+
225
  $order_support_conditions = array_reduce($order_support_conditions, function ($carry, $item) {
226
  $carry[] = $item['id'];
227
 
src/core/src/Admin/views/view.pro-conditions.php CHANGED
@@ -19,6 +19,9 @@ $pro_conditions = [
19
  'LifterLMS' => [
20
  esc_html__('Enrolled Course', 'peters-login-redirect'),
21
  esc_html__('Enrolled Membership', 'peters-login-redirect')
 
 
 
22
  ]
23
  ];
24
  ?>
19
  'LifterLMS' => [
20
  esc_html__('Enrolled Course', 'peters-login-redirect'),
21
  esc_html__('Enrolled Membership', 'peters-login-redirect')
22
+ ],
23
+ 'TutorLMS' => [
24
+ esc_html__('Enrolled Course', 'peters-login-redirect')
25
  ]
26
  ];
27
  ?>
src/core/src/Helpers.php CHANGED
@@ -37,12 +37,13 @@ class Helpers
37
 
38
  $rul_userresults = $wpdb->get_results('SELECT user_login FROM ' . $wpdb->users . ' ORDER BY user_login', 'ARRAY_N');
39
 
40
- return array_reduce($rul_userresults, function ($carry, $item) {
41
 
42
- $carry[$item[0]] = $item[0];
 
 
43
 
44
- return $carry;
45
- });
46
  }
47
 
48
  public static function user_role_list()
37
 
38
  $rul_userresults = $wpdb->get_results('SELECT user_login FROM ' . $wpdb->users . ' ORDER BY user_login', 'ARRAY_N');
39
 
40
+ $usernames = array();
41
 
42
+ foreach ($rul_userresults as $item) {
43
+ $usernames[$item[0]] = $item[0];
44
+ }
45
 
46
+ return $usernames;
 
47
  }
48
 
49
  public static function user_role_list()
vendor/autoload.php CHANGED
@@ -4,4 +4,4 @@
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
- return ComposerAutoloaderInita43bbf33f561403ddc9fa682922990a4::getLoader();
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
+ return ComposerAutoloaderInit4b44a68b6370509d634acaffca899615::getLoader();
vendor/composer/autoload_real.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
- class ComposerAutoloaderInita43bbf33f561403ddc9fa682922990a4
6
  {
7
  private static $loader;
8
 
@@ -24,15 +24,15 @@ class ComposerAutoloaderInita43bbf33f561403ddc9fa682922990a4
24
 
25
  require __DIR__ . '/platform_check.php';
26
 
27
- spl_autoload_register(array('ComposerAutoloaderInita43bbf33f561403ddc9fa682922990a4', 'loadClassLoader'), true, true);
28
  self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
29
- spl_autoload_unregister(array('ComposerAutoloaderInita43bbf33f561403ddc9fa682922990a4', '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\ComposerStaticInita43bbf33f561403ddc9fa682922990a4::getInitializer($loader));
36
  } else {
37
  $map = require __DIR__ . '/autoload_namespaces.php';
38
  foreach ($map as $namespace => $path) {
@@ -53,19 +53,19 @@ class ComposerAutoloaderInita43bbf33f561403ddc9fa682922990a4
53
  $loader->register(true);
54
 
55
  if ($useStaticLoader) {
56
- $includeFiles = Composer\Autoload\ComposerStaticInita43bbf33f561403ddc9fa682922990a4::$files;
57
  } else {
58
  $includeFiles = require __DIR__ . '/autoload_files.php';
59
  }
60
  foreach ($includeFiles as $fileIdentifier => $file) {
61
- composerRequirea43bbf33f561403ddc9fa682922990a4($fileIdentifier, $file);
62
  }
63
 
64
  return $loader;
65
  }
66
  }
67
 
68
- function composerRequirea43bbf33f561403ddc9fa682922990a4($fileIdentifier, $file)
69
  {
70
  if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
71
  require $file;
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
+ class ComposerAutoloaderInit4b44a68b6370509d634acaffca899615
6
  {
7
  private static $loader;
8
 
24
 
25
  require __DIR__ . '/platform_check.php';
26
 
27
+ spl_autoload_register(array('ComposerAutoloaderInit4b44a68b6370509d634acaffca899615', 'loadClassLoader'), true, true);
28
  self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
29
+ spl_autoload_unregister(array('ComposerAutoloaderInit4b44a68b6370509d634acaffca899615', '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\ComposerStaticInit4b44a68b6370509d634acaffca899615::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\ComposerStaticInit4b44a68b6370509d634acaffca899615::$files;
57
  } else {
58
  $includeFiles = require __DIR__ . '/autoload_files.php';
59
  }
60
  foreach ($includeFiles as $fileIdentifier => $file) {
61
+ composerRequire4b44a68b6370509d634acaffca899615($fileIdentifier, $file);
62
  }
63
 
64
  return $loader;
65
  }
66
  }
67
 
68
+ function composerRequire4b44a68b6370509d634acaffca899615($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 ComposerStaticInita43bbf33f561403ddc9fa682922990a4
8
  {
9
  public static $files = array (
10
  '7c119350ad5d791b1ae2d87a60e07ace' => __DIR__ . '/../..' . '/src/core/src/MoAdminNotice.php',
@@ -156,9 +156,9 @@ class ComposerStaticInita43bbf33f561403ddc9fa682922990a4
156
  public static function getInitializer(ClassLoader $loader)
157
  {
158
  return \Closure::bind(function () use ($loader) {
159
- $loader->prefixLengthsPsr4 = ComposerStaticInita43bbf33f561403ddc9fa682922990a4::$prefixLengthsPsr4;
160
- $loader->prefixDirsPsr4 = ComposerStaticInita43bbf33f561403ddc9fa682922990a4::$prefixDirsPsr4;
161
- $loader->classMap = ComposerStaticInita43bbf33f561403ddc9fa682922990a4::$classMap;
162
 
163
  }, null, ClassLoader::class);
164
  }
4
 
5
  namespace Composer\Autoload;
6
 
7
+ class ComposerStaticInit4b44a68b6370509d634acaffca899615
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 = ComposerStaticInit4b44a68b6370509d634acaffca899615::$prefixLengthsPsr4;
160
+ $loader->prefixDirsPsr4 = ComposerStaticInit4b44a68b6370509d634acaffca899615::$prefixDirsPsr4;
161
+ $loader->classMap = ComposerStaticInit4b44a68b6370509d634acaffca899615::$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.1649161704",
204
- "version_normalized": "0.1.0.0-alpha1649161704",
205
  "source": {
206
  "type": "git",
207
  "url": "https://github.com/loginwp/Core.git",
208
- "reference": "1549fc5dc41e0c60f719448520e0c498debf57bc"
209
  },
210
  "dist": {
211
  "type": "zip",
212
- "url": "https://api.github.com/repos/loginwp/Core/zipball/1549fc5dc41e0c60f719448520e0c498debf57bc",
213
- "reference": "1549fc5dc41e0c60f719448520e0c498debf57bc",
214
  "shasum": ""
215
  },
216
  "require": {
217
  "collizo4sky/persist-admin-notices-dismissal": "^1.4",
218
  "composer/installers": "~1.0"
219
  },
220
- "time": "2022-04-04T08:13:43+00:00",
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.1649161704"
237
  },
238
  "install-path": "../../src/core"
239
  }
200
  },
201
  {
202
  "name": "loginwp/core",
203
+ "version": "0.1.0-alpha.1653505432",
204
+ "version_normalized": "0.1.0.0-alpha1653505432",
205
  "source": {
206
  "type": "git",
207
  "url": "https://github.com/loginwp/Core.git",
208
+ "reference": "98eb2c3d31b4fe315d6eb550b420a81242e465d2"
209
  },
210
  "dist": {
211
  "type": "zip",
212
+ "url": "https://api.github.com/repos/loginwp/Core/zipball/98eb2c3d31b4fe315d6eb550b420a81242e465d2",
213
+ "reference": "98eb2c3d31b4fe315d6eb550b420a81242e465d2",
214
  "shasum": ""
215
  },
216
  "require": {
217
  "collizo4sky/persist-admin-notices-dismissal": "^1.4",
218
  "composer/installers": "~1.0"
219
  },
220
+ "time": "2022-05-25T17:45:27+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.1653505432"
237
  },
238
  "install-path": "../../src/core"
239
  }
vendor/composer/installed.php CHANGED
@@ -38,12 +38,12 @@
38
  'dev_requirement' => false,
39
  ),
40
  'loginwp/core' => array(
41
- 'pretty_version' => '0.1.0-alpha.1649161704',
42
- 'version' => '0.1.0.0-alpha1649161704',
43
  'type' => 'wordpress-plugin',
44
  'install_path' => __DIR__ . '/../../src/core',
45
  'aliases' => array(),
46
- 'reference' => '1549fc5dc41e0c60f719448520e0c498debf57bc',
47
  'dev_requirement' => false,
48
  ),
49
  'roundcube/plugin-installer' => array(
38
  'dev_requirement' => false,
39
  ),
40
  'loginwp/core' => array(
41
+ 'pretty_version' => '0.1.0-alpha.1653505432',
42
+ 'version' => '0.1.0.0-alpha1653505432',
43
  'type' => 'wordpress-plugin',
44
  'install_path' => __DIR__ . '/../../src/core',
45
  'aliases' => array(),
46
+ 'reference' => '98eb2c3d31b4fe315d6eb550b420a81242e465d2',
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.8
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.8');
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.1.0
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.1.0');
20
 
21
  add_action('init', function () {
22
  load_plugin_textdomain('peters-login-redirect', false, dirname(plugin_basename(__FILE__)) . '/languages');