Eggplant 301 Redirects - Version 2.50

Version Description

  • 2020/08/10
  • added support for 307 Temporary Redirect
  • 100k installs hit on 2020/07/22 with about 365,000 downloads
Download this release

Release Info

Developer WebFactory
Plugin Icon 128x128 Eggplant 301 Redirects
Version 2.50
Comparing to
See all releases

Code changes from version 2.45 to 2.50

eps-301-redirects.php CHANGED
@@ -2,7 +2,7 @@
2
  /*
3
  Plugin Name: 301 Redirects
4
  Description: Easily create and manage 301 redirects.
5
- Version: 2.45
6
  Author: WebFactory Ltd
7
  Author URI: https://www.webfactoryltd.com/
8
  Text Domain: eps-301-redirects
@@ -128,6 +128,8 @@ if (!defined('EPS_REDIRECT_PRO')) {
128
  header('HTTP/1.1 301 Moved Permanently');
129
  } elseif ($redirect->status == '302') {
130
  header('HTTP/1.1 302 Moved Temporarily');
 
 
131
  }
132
 
133
  $to = ($redirect->type == "url" && !is_numeric($redirect->url_to)) ? urldecode($redirect->url_to) : get_permalink($redirect->url_to);
2
  /*
3
  Plugin Name: 301 Redirects
4
  Description: Easily create and manage 301 redirects.
5
+ Version: 2.50
6
  Author: WebFactory Ltd
7
  Author URI: https://www.webfactoryltd.com/
8
  Text Domain: eps-301-redirects
128
  header('HTTP/1.1 301 Moved Permanently');
129
  } elseif ($redirect->status == '302') {
130
  header('HTTP/1.1 302 Moved Temporarily');
131
+ } elseif ($redirect->status == '307') {
132
+ header('HTTP/1.1 307 Temporary Redirect');
133
  }
134
 
135
  $to = ($redirect->type == "url" && !is_numeric($redirect->url_to)) ? urldecode($redirect->url_to) : get_permalink($redirect->url_to);
example.csv CHANGED
@@ -1,4 +1,5 @@
1
  off,from_url_1,redirect_to_url
2
  301,from_url_2,1
3
  302,from_url_3,redirect_to_url
 
4
  404,from_url_4,2
1
  off,from_url_1,redirect_to_url
2
  301,from_url_2,1
3
  302,from_url_3,redirect_to_url
4
+ 307,from_url_3,redirect_to_url
5
  404,from_url_4,2
plugin.php CHANGED
@@ -461,6 +461,9 @@ class EPS_Redirects_Plugin
461
  case '302':
462
  $status = 302;
463
  break;
 
 
 
464
  case 'off':
465
  case 'no':
466
  case 'inactive':
461
  case '302':
462
  $status = 302;
463
  break;
464
+ case '307':
465
+ $status = 307;
466
+ break;
467
  case 'off':
468
  case 'no':
469
  case 'inactive':
readme.txt CHANGED
@@ -1,9 +1,9 @@
1
  === 301 Redirects - Easy Redirect Manager ===
2
  Contributors: WebFactory, wpreset, googlemapswidget, underconstructionpage
3
- Tags: 301 redirect, redirects, redirect, 302 redirect, redirection, 302, seo, 302 redirect, 404, 404 redirect, 301
4
  Requires at least: 4.0
5
- Tested up to: 5.4
6
- Stable tag: 2.45
7
  Requires PHP: 5.2
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
@@ -12,7 +12,7 @@ Easily manage and create 301 & 302 redirects. Simple to use & validate redirects
12
 
13
  == Description ==
14
 
15
- **301 Redirects** helps you manage and create 301 & 302 redirects for your WordPress site to **improve SEO and visitor experience**. With a user-friendly interface, 301 Redirects is easy to install and configure. Perfect for new sites or repairing links after re-organizing your existing WordPress content, or when your site has content that expires and you wish to avoid sending visitors to a 404 page.
16
 
17
  301 Redirects GUI is located in WP Admin Dashboard - Settings - 301 Redirects
18
 
@@ -56,6 +56,11 @@ A 301 redirect indicates that the page requested has been permanently moved to t
56
 
57
  == Changelog ==
58
 
 
 
 
 
 
59
  = 2.45 =
60
  * 2019/12/17
61
  * security fixes - big thank you to Chloe from Wordfence
1
  === 301 Redirects - Easy Redirect Manager ===
2
  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.50
7
  Requires PHP: 5.2
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
 
13
  == Description ==
14
 
15
+ **301 Redirects** helps you manage and create 301, 302, 307 redirects for your WordPress site to **improve SEO and visitor experience**. With a user-friendly interface, 301 Redirects is easy to install and configure. Perfect for new sites or repairing links after re-organizing your existing WordPress content, or when your site has content that expires and you wish to avoid sending visitors to a 404 page.
16
 
17
  301 Redirects GUI is located in WP Admin Dashboard - Settings - 301 Redirects
18
 
56
 
57
  == Changelog ==
58
 
59
+ = 2.50 =
60
+ * 2020/08/10
61
+ * added support for 307 Temporary Redirect
62
+ * 100k installs hit on 2020/07/22 with about 365,000 downloads
63
+
64
  = 2.45 =
65
  * 2019/12/17
66
  * security fixes - big thank you to Chloe from Wordfence
templates/admin-tab-import-export.php CHANGED
@@ -30,7 +30,7 @@ if (!defined('ABSPATH')) {
30
  &nbsp;&nbsp;&nbsp;<input type="radio" name="eps_redirect_upload_method" value="update"> Update Duplicates
31
  </p>
32
 
33
- <br><small class="eps-grey-text">Supply Columns: <strong>Status</strong> (301,302,inactive), <strong>Request URL</strong>, <strong>Redirect
34
  To</strong> (ID or URL). <a href="<?php echo EPS_REDIRECT_URL . 'example.csv' ?>" target="_blank">Download Example CSV</a></small>
35
  </form>
36
  </div>
30
  &nbsp;&nbsp;&nbsp;<input type="radio" name="eps_redirect_upload_method" value="update"> Update Duplicates
31
  </p>
32
 
33
+ <br><small class="eps-grey-text">Supply Columns: <strong>Status</strong> (301,302,307,inactive), <strong>Request URL</strong>, <strong>Redirect
34
  To</strong> (ID or URL). <a href="<?php echo EPS_REDIRECT_URL . 'example.csv' ?>" target="_blank">Download Example CSV</a></small>
35
  </form>
36
  </div>
templates/template.redirect-entry-edit.php CHANGED
@@ -22,6 +22,7 @@ $redirect = self::get_redirect($redirect_id);
22
  <select name="redirect[status][]" class="eps-small-select">
23
  <option default value="301" <?php echo ($redirect && $redirect->status == '301') ? 'selected="selected"' : null; ?>>301</option>
24
  <option value="302" <?php echo ($redirect && $redirect->status == '302') ? 'selected="selected"' : null; ?>>302</option>
 
25
  <option value="inactive" <?php echo ($redirect && $redirect->status == 'inactive') ? 'selected="selected"' : null; ?>>Off</option>
26
  </select>
27
 
22
  <select name="redirect[status][]" class="eps-small-select">
23
  <option default value="301" <?php echo ($redirect && $redirect->status == '301') ? 'selected="selected"' : null; ?>>301</option>
24
  <option value="302" <?php echo ($redirect && $redirect->status == '302') ? 'selected="selected"' : null; ?>>302</option>
25
+ <option value="307" <?php echo ($redirect && $redirect->status == '307') ? 'selected="selected"' : null; ?>>307</option>
26
  <option value="inactive" <?php echo ($redirect && $redirect->status == 'inactive') ? 'selected="selected"' : null; ?>>Off</option>
27
  </select>
28