404 to 301 - Version 2.1.7

Version Description

(20/04/2016) = New Add-on

  • New Log Manager add-on available now.
  • Get periodic email alerts instead of instant email alerts for every errors (add-on).
  • Automatically clear error logs (add-on).

Improvements

  • Removed inactive filter - i4t3_before_404_redirect
Download this release

Release Info

Developer joelcj91
Plugin Icon 128x128 404 to 301
Version 2.1.7
Comparing to
See all releases

Code changes from version 2.1.6 to 2.1.7

404-to-301.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: 404 to 301
4
  * Plugin URI: https://thefoxe.com/products/404-to-301/
5
  * Description: Automatically redirect all <strong>404 errors</strong> to any page using <strong>301 redirect for SEO</strong>. You can <strong>redirect and log</strong> every 404 errors. No more 404 errors in Webmaster tool.
6
- * Version: 2.1.6
7
  * Author: Joel James
8
  * Author URI: https://thefoxe.com/
9
  * Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=XUVWY8HUBUXY4
@@ -28,7 +28,7 @@
28
  * @package I4T3
29
  * @category Core
30
  * @author Joel James
31
- * @version 2.1.6
32
  */
33
  // If this file is called directly, abort.
34
  if (!defined('WPINC')) {
@@ -51,7 +51,7 @@ if (!defined('I4T3_DB_VERSION')) {
51
  define('I4T3_DB_VERSION', '3');
52
  }
53
  if (!defined('I4T3_VERSION')) {
54
- define('I4T3_VERSION', '2.1.6');
55
  }
56
  // Set who all can access 404 settings. You can change this if you want to give others access.
57
  if (!defined('I4T3_ADMIN_PERMISSION')) {
3
  * Plugin Name: 404 to 301
4
  * Plugin URI: https://thefoxe.com/products/404-to-301/
5
  * Description: Automatically redirect all <strong>404 errors</strong> to any page using <strong>301 redirect for SEO</strong>. You can <strong>redirect and log</strong> every 404 errors. No more 404 errors in Webmaster tool.
6
+ * Version: 2.1.7
7
  * Author: Joel James
8
  * Author URI: https://thefoxe.com/
9
  * Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=XUVWY8HUBUXY4
28
  * @package I4T3
29
  * @category Core
30
  * @author Joel James
31
+ * @version 2.1.7
32
  */
33
  // If this file is called directly, abort.
34
  if (!defined('WPINC')) {
51
  define('I4T3_DB_VERSION', '3');
52
  }
53
  if (!defined('I4T3_VERSION')) {
54
+ define('I4T3_VERSION', '2.1.7');
55
  }
56
  // Set who all can access 404 settings. You can change this if you want to give others access.
57
  if (!defined('I4T3_ADMIN_PERMISSION')) {
includes/class-404-to-301.php CHANGED
@@ -70,7 +70,7 @@ class _404_To_301 {
70
  public function __construct() {
71
 
72
  $this->plugin_name = '404-to-301';
73
- $this->version = '2.1.6';
74
  $this->table = $GLOBALS['wpdb']->prefix . '404_to_301';
75
  $this->load_dependencies();
76
  $this->set_locale();
70
  public function __construct() {
71
 
72
  $this->plugin_name = '404-to-301';
73
+ $this->version = '2.1.7';
74
  $this->table = $GLOBALS['wpdb']->prefix . '404_to_301';
75
  $this->load_dependencies();
76
  $this->set_locale();
public/class-404-to-301-public.php CHANGED
@@ -185,17 +185,14 @@ class _404_To_301_Public {
185
  default:
186
  break;
187
  }
188
-
189
  // Perform the redirect if $url is set
190
  if (!empty($url)) {
191
  // Action hook that will be performed before 404 redirect starts
192
  //echo $url; exit();
193
- do_action('i4t3_before_404_redirect');
194
  wp_redirect($url, $redirect_type);
195
  exit(); // exit, because WordPress will not exit automatically
196
  }
197
- // Action hook that will be performed after 404 redirect
198
- do_action('i4t3_after_404_redirect');
199
  }
200
  }
201
 
185
  default:
186
  break;
187
  }
188
+ do_action('i4t3_before_404_redirect');
189
  // Perform the redirect if $url is set
190
  if (!empty($url)) {
191
  // Action hook that will be performed before 404 redirect starts
192
  //echo $url; exit();
 
193
  wp_redirect($url, $redirect_type);
194
  exit(); // exit, because WordPress will not exit automatically
195
  }
 
 
196
  }
197
  }
198
 
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: 404, 301, 302, 307, not found, 404 redirect, 404 to 301, 301 redirect, seo
4
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=XUVWY8HUBUXY4
5
  Requires at least: 3.0
6
  Tested up to: 4.5
7
- Stable tag: 2.1.6
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -18,6 +18,16 @@ If you care about your website, you should take steps to avoid 404 errors as it
18
 
19
  *Handling 404 errors in your site should be easy. With this plugin, it finally is.*
20
 
 
 
 
 
 
 
 
 
 
 
21
  404 to 301 is a simple but amazing plugin which handles all 404 errors for you. It will redirect all 404 errors to any page that you set, using 301 (or any other) status. That means no more 404 errors! Even in Google webmaster tool you are safe!
22
  You will not see any 404 error reports in your webmaster tool dashboard.
23
 
@@ -112,6 +122,17 @@ Bug reports for 404 to 301 are always welcome. [Report here](https://thefoxe.com
112
 
113
  == Changelog ==
114
 
 
 
 
 
 
 
 
 
 
 
 
115
  = 2.1.6 (06/04/2016) =
116
  **Improvements**
117
 
@@ -254,6 +275,13 @@ Bug reports for 404 to 301 are always welcome. [Report here](https://thefoxe.com
254
 
255
  == Upgrade Notice ==
256
 
257
- = 2.1.6 (06/04/2016) =
258
- - Fixed broken plugin website links.
259
- - Tested with WordPress 4.5.
 
 
 
 
 
 
 
4
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=XUVWY8HUBUXY4
5
  Requires at least: 3.0
6
  Tested up to: 4.5
7
+ Stable tag: 2.1.7
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
18
 
19
  *Handling 404 errors in your site should be easy. With this plugin, it finally is.*
20
 
21
+ > #### 404 to 301 Log Manager - Add-on is now available!
22
+ >
23
+ > - Instead of instant email alerts, get **hourly, twice daily, daily, twice weekly, weekly** alerts.<br />
24
+ > - Limit the amount of emails sent out based on error logs count.<br />
25
+ > - **PDF file** attachment of error logs will be delivered through the email.<br />
26
+ > - **Automatically clear** old error logs based on time period.<br />
27
+ > - Get email alerts to multiple email recipients.<br />
28
+ >
29
+ > [Get this add-on now](https://thefoxe.com/products/404-to-301-log-manager/) | [See Docs](https://thefoxe.com/docs/docs/category/404-to-301/log-manager/)
30
+
31
  404 to 301 is a simple but amazing plugin which handles all 404 errors for you. It will redirect all 404 errors to any page that you set, using 301 (or any other) status. That means no more 404 errors! Even in Google webmaster tool you are safe!
32
  You will not see any 404 error reports in your webmaster tool dashboard.
33
 
122
 
123
  == Changelog ==
124
 
125
+ = 2.1.7 (20/04/2016) =
126
+ **New Add-on**
127
+
128
+ - New [Log Manager](https://thefoxe.com/products/404-to-301-log-manager/) add-on available now.
129
+ - Get periodic email alerts instead of instant email alerts for every errors (add-on).
130
+ - Automatically clear error logs (add-on).
131
+
132
+ **Improvements**
133
+
134
+ - Removed inactive filter - i4t3_before_404_redirect
135
+
136
  = 2.1.6 (06/04/2016) =
137
  **Improvements**
138
 
275
 
276
  == Upgrade Notice ==
277
 
278
+ = 2.1.7 (20/04/2016) =
279
+ **New Add-on**
280
+
281
+ - New [Log Manager](https://thefoxe.com/products/404-to-301-log-manager/) add-on available now.
282
+ - Get periodic email alerts instead of instant email alerts for every errors (add-on).
283
+ - Automatically clear error logs (add-on).
284
+
285
+ **Improvements**
286
+
287
+ - Removed inactive filter - i4t3_before_404_redirect