Version Description
- 2020/09/07
- Fixed issue with URL prefix on translate plugins like Weglot, TranslatePress, Gtranslate, Loco Translate
Download this release
Release Info
Developer | WebFactory |
Plugin | Eggplant 301 Redirects |
Version | 2.52 |
Comparing to | |
See all releases |
Code changes from version 2.51 to 2.52
- eps-301-redirects.php +6 -5
- plugin.php +8 -0
- readme.txt +6 -1
eps-301-redirects.php
CHANGED
@@ -2,12 +2,12 @@
|
|
2 |
/*
|
3 |
Plugin Name: 301 Redirects
|
4 |
Description: Easily create and manage 301 redirects.
|
5 |
-
Version: 2.
|
6 |
Author: WebFactory Ltd
|
7 |
Author URI: https://www.webfactoryltd.com/
|
8 |
Text Domain: eps-301-redirects
|
9 |
|
10 |
-
Copyright 2015 - 2020 Web factory Ltd (email:
|
11 |
|
12 |
This program is free software; you can redistribute it and/or modify
|
13 |
it under the terms of the GNU General Public License, version 2, as
|
@@ -42,6 +42,7 @@ if (!defined('EPS_REDIRECT_PRO')) {
|
|
42 |
|
43 |
register_activation_hook(__FILE__, array('EPS_Redirects_Plugin', '_activation'));
|
44 |
register_deactivation_hook(__FILE__, array('EPS_Redirects_Plugin', '_deactivation'));
|
|
|
45 |
|
46 |
class EPS_Redirects
|
47 |
{
|
@@ -177,9 +178,9 @@ if (!defined('EPS_REDIRECT_PRO')) {
|
|
177 |
*/
|
178 |
public static function get_url()
|
179 |
{
|
180 |
-
|
181 |
-
|
182 |
-
|
183 |
}
|
184 |
|
185 |
public function featured_plugins_tab($args)
|
2 |
/*
|
3 |
Plugin Name: 301 Redirects
|
4 |
Description: Easily create and manage 301 redirects.
|
5 |
+
Version: 2.52
|
6 |
Author: WebFactory Ltd
|
7 |
Author URI: https://www.webfactoryltd.com/
|
8 |
Text Domain: eps-301-redirects
|
9 |
|
10 |
+
Copyright 2015 - 2020 Web factory Ltd (email: 301redirects@webfactoryltd.com)
|
11 |
|
12 |
This program is free software; you can redistribute it and/or modify
|
13 |
it under the terms of the GNU General Public License, version 2, as
|
42 |
|
43 |
register_activation_hook(__FILE__, array('EPS_Redirects_Plugin', '_activation'));
|
44 |
register_deactivation_hook(__FILE__, array('EPS_Redirects_Plugin', '_deactivation'));
|
45 |
+
add_action('plugins_loaded', array('EPS_Redirects_Plugin', 'protect_from_translation_plugins'), -9999);
|
46 |
|
47 |
class EPS_Redirects
|
48 |
{
|
178 |
*/
|
179 |
public static function get_url()
|
180 |
{
|
181 |
+
global $original_request_uri;
|
182 |
+
|
183 |
+
return $original_request_uri;
|
184 |
}
|
185 |
|
186 |
public function featured_plugins_tab($args)
|
plugin.php
CHANGED
@@ -665,6 +665,14 @@ class EPS_Redirects_Plugin
|
|
665 |
$string
|
666 |
);
|
667 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
668 |
}
|
669 |
|
670 |
// Init the plugin.
|
665 |
$string
|
666 |
);
|
667 |
}
|
668 |
+
|
669 |
+
|
670 |
+
public static function protect_from_translation_plugins()
|
671 |
+
{
|
672 |
+
global $original_request_uri;
|
673 |
+
|
674 |
+
$original_request_uri = strtolower(urldecode($_SERVER['REQUEST_URI']));
|
675 |
+
}
|
676 |
}
|
677 |
|
678 |
// Init the plugin.
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: WebFactory, wpreset, googlemapswidget, underconstructionpage
|
|
3 |
Tags: 301 redirect, redirects, redirect, 302 redirect, redirection, 302, seo, 302 redirect, 404, 404 redirect, 301, 307
|
4 |
Requires at least: 4.0
|
5 |
Tested up to: 5.5
|
6 |
-
Stable tag: 2.
|
7 |
Requires PHP: 5.2
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
@@ -24,6 +24,7 @@ Easily manage and create 301 & 302 redirects. Simple to use & validate redirects
|
|
24 |
* Super-fast redirection
|
25 |
* Import/Export feature for bulk redirects management
|
26 |
* Simple redirect stats so you know how much a redirection is used
|
|
|
27 |
|
28 |
|
29 |
**What is a 301 Redirect?**
|
@@ -56,6 +57,10 @@ A 301 redirect indicates that the page requested has been permanently moved to t
|
|
56 |
|
57 |
== Changelog ==
|
58 |
|
|
|
|
|
|
|
|
|
59 |
= 2.51 =
|
60 |
* 2020/08/13
|
61 |
* security fixes - thank you <a href="http://eringerm.com/">Erin</a>
|
3 |
Tags: 301 redirect, redirects, redirect, 302 redirect, redirection, 302, seo, 302 redirect, 404, 404 redirect, 301, 307
|
4 |
Requires at least: 4.0
|
5 |
Tested up to: 5.5
|
6 |
+
Stable tag: 2.52
|
7 |
Requires PHP: 5.2
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
24 |
* Super-fast redirection
|
25 |
* Import/Export feature for bulk redirects management
|
26 |
* Simple redirect stats so you know how much a redirection is used
|
27 |
+
* Fully compatible with translation plugins (Weglot, TranslatePress, Gtranslate, Loco Translate) that use lang prefix in URL
|
28 |
|
29 |
|
30 |
**What is a 301 Redirect?**
|
57 |
|
58 |
== Changelog ==
|
59 |
|
60 |
+
= 2.52 =
|
61 |
+
* 2020/09/07
|
62 |
+
* Fixed issue with URL prefix on translate plugins like Weglot, TranslatePress, Gtranslate, Loco Translate
|
63 |
+
|
64 |
= 2.51 =
|
65 |
* 2020/08/13
|
66 |
* security fixes - thank you <a href="http://eringerm.com/">Erin</a>
|