Version Description
(02/06/2016) = Bug Fixes
- Fixed custom redirect issue.
- Fixed issues when activating.
Download this release
Release Info
Developer | joelcj91 |
Plugin | 404 to 301 |
Version | 2.2.4 |
Comparing to | |
See all releases |
Code changes from version 2.2.3 to 2.2.4
- 404-to-301.php +3 -3
- includes/class-404-to-301-activator.php +2 -2
- readme.txt +6 -4
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.2.
|
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
|
@@ -48,8 +48,8 @@ if ( ! class_exists( '_404_To_301' ) ) {
|
|
48 |
'I4T3_SETTINGS_PAGE' => admin_url( 'admin.php?page=i4t3-settings' ),
|
49 |
'I4T3_HELP_PAGE' => admin_url( 'admin.php?page=i4t3-settings&tab=credits' ),
|
50 |
'I4T3_LOGS_PAGE' => admin_url( 'admin.php?page=i4t3-logs' ),
|
51 |
-
'I4T3_DB_VERSION' => '
|
52 |
-
'I4T3_VERSION' => '2.2.
|
53 |
'I4T3_TABLE' => $GLOBALS['wpdb']->prefix . '404_to_301',
|
54 |
// Set who all can access 404 settings.
|
55 |
// You can change this if you want to give others access.
|
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.2.4
|
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
|
48 |
'I4T3_SETTINGS_PAGE' => admin_url( 'admin.php?page=i4t3-settings' ),
|
49 |
'I4T3_HELP_PAGE' => admin_url( 'admin.php?page=i4t3-settings&tab=credits' ),
|
50 |
'I4T3_LOGS_PAGE' => admin_url( 'admin.php?page=i4t3-logs' ),
|
51 |
+
'I4T3_DB_VERSION' => '8',
|
52 |
+
'I4T3_VERSION' => '2.2.4',
|
53 |
'I4T3_TABLE' => $GLOBALS['wpdb']->prefix . '404_to_301',
|
54 |
// Set who all can access 404 settings.
|
55 |
// You can change this if you want to give others access.
|
includes/class-404-to-301-activator.php
CHANGED
@@ -52,7 +52,7 @@ class _404_To_301_Activator {
|
|
52 |
// loop through each new options
|
53 |
// to check old value exist for each items.
|
54 |
foreach ( $options as $key => $value ) {
|
55 |
-
if ( array_key_exists( $
|
56 |
// if old value exists, update that
|
57 |
$options[ $key ] = $old[ $key ];
|
58 |
}
|
@@ -63,7 +63,7 @@ class _404_To_301_Activator {
|
|
63 |
// get plugin db version
|
64 |
$db_version = get_option('i4t3_db_version');
|
65 |
|
66 |
-
if ( ! $db_version || ( I4T3_DB_VERSION != $
|
67 |
|
68 |
global $wpdb;
|
69 |
|
52 |
// loop through each new options
|
53 |
// to check old value exist for each items.
|
54 |
foreach ( $options as $key => $value ) {
|
55 |
+
if ( array_key_exists( $key, $old ) ) {
|
56 |
// if old value exists, update that
|
57 |
$options[ $key ] = $old[ $key ];
|
58 |
}
|
63 |
// get plugin db version
|
64 |
$db_version = get_option('i4t3_db_version');
|
65 |
|
66 |
+
if ( ! $db_version || ( I4T3_DB_VERSION != $db_version ) ) {
|
67 |
|
68 |
global $wpdb;
|
69 |
|
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.5
|
6 |
Tested up to: 4.5.2
|
7 |
-
Stable tag: 2.2.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -128,10 +128,11 @@ Bug reports for 404 to 301 are always welcome. [Report here](https://thefoxe.com
|
|
128 |
|
129 |
== Changelog ==
|
130 |
|
131 |
-
= 2.2.
|
132 |
**Bug Fixes**
|
133 |
|
134 |
- Fixed custom redirect issue.
|
|
|
135 |
|
136 |
= 2.2.2 (01/06/2016) =
|
137 |
**New Feature**
|
@@ -297,7 +298,8 @@ Bug reports for 404 to 301 are always welcome. [Report here](https://thefoxe.com
|
|
297 |
|
298 |
== Upgrade Notice ==
|
299 |
|
300 |
-
= 2.2.
|
301 |
**Bug Fixes**
|
302 |
|
303 |
-
- Fixed custom redirect issue.
|
|
4 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=XUVWY8HUBUXY4
|
5 |
Requires at least: 3.5
|
6 |
Tested up to: 4.5.2
|
7 |
+
Stable tag: 2.2.4
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
128 |
|
129 |
== Changelog ==
|
130 |
|
131 |
+
= 2.2.4 (02/06/2016) =
|
132 |
**Bug Fixes**
|
133 |
|
134 |
- Fixed custom redirect issue.
|
135 |
+
- Fixed issues when activating.
|
136 |
|
137 |
= 2.2.2 (01/06/2016) =
|
138 |
**New Feature**
|
298 |
|
299 |
== Upgrade Notice ==
|
300 |
|
301 |
+
= 2.2.4 (02/06/2016) =
|
302 |
**Bug Fixes**
|
303 |
|
304 |
+
- Fixed custom redirect issue.
|
305 |
+
- Fixed issues when activating.
|