404 to 301 - Version 3.0.7

Version Description

(28/01/2021) = ** Bug Fixes**

  • Activation hook was not being executed.
  • Table creation failed in new installations.
Download this release

Release Info

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

Code changes from version 3.0.6 to 3.0.7

404-to-301.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: 404 to 301 - Redirect, Log and Notify 404 Errors
4
  * Plugin URI: https://duckdev.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: 3.0.6
7
  * Author: Joel James
8
  * Author URI: https://duckdev.com/
9
  * Donate link: https://paypal.me/JoelCJ
@@ -44,7 +44,7 @@ define( 'JJ4T3_URL', plugin_dir_url( __FILE__ ) );
44
  // Define plugin base file.
45
  define( 'JJ4T3_BASE_FILE', __FILE__ );
46
  // Define plugin version.
47
- define( 'JJ4T3_VERSION', '3.0.6' );
48
  // Define plugin version.
49
  define( 'JJ4T3_DB_VERSION', '11.0' );
50
  // Define plugin log table.
@@ -58,6 +58,7 @@ if ( ! defined( 'JJ4T3_ACCESS' ) ) {
58
 
59
  // File that contains main plugin class.
60
  require_once JJ4T3_DIR . 'includes/class-jj-404-to-301.php';
 
61
 
62
  /**
63
  * The main function for that returns JJ_404_to_301
@@ -78,6 +79,19 @@ function jj_404_to_301() {
78
  return JJ_404_to_301::instance();
79
  }
80
 
 
 
 
 
 
 
 
 
 
 
 
 
 
81
  // Check the minimum required PHP version (5.6) and run the plugin.
82
  if ( version_compare( PHP_VERSION, '5.6', '>=' ) ) {
83
  // Run the plugin.
3
  * Plugin Name: 404 to 301 - Redirect, Log and Notify 404 Errors
4
  * Plugin URI: https://duckdev.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: 3.0.7
7
  * Author: Joel James
8
  * Author URI: https://duckdev.com/
9
  * Donate link: https://paypal.me/JoelCJ
44
  // Define plugin base file.
45
  define( 'JJ4T3_BASE_FILE', __FILE__ );
46
  // Define plugin version.
47
+ define( 'JJ4T3_VERSION', '3.0.7' );
48
  // Define plugin version.
49
  define( 'JJ4T3_DB_VERSION', '11.0' );
50
  // Define plugin log table.
58
 
59
  // File that contains main plugin class.
60
  require_once JJ4T3_DIR . 'includes/class-jj-404-to-301.php';
61
+ require_once JJ4T3_DIR . 'includes/class-jj4t3-activator-deactivator-uninstaller.php';
62
 
63
  /**
64
  * The main function for that returns JJ_404_to_301
79
  return JJ_404_to_301::instance();
80
  }
81
 
82
+ /**
83
+ * Plugin activation actions.
84
+ *
85
+ * Actions to perform during plugin activation.
86
+ * We will be registering default options in this function.
87
+ *
88
+ * @uses register_activation_hook() To register activation hook.
89
+ */
90
+ register_activation_hook(
91
+ JJ4T3_BASE_FILE,
92
+ array( 'JJ4T3_Activator_Deactivator_Uninstaller', 'activate' )
93
+ );
94
+
95
  // Check the minimum required PHP version (5.6) and run the plugin.
96
  if ( version_compare( PHP_VERSION, '5.6', '>=' ) ) {
97
  // Run the plugin.
includes/class-jj-404-to-301.php CHANGED
@@ -50,8 +50,6 @@ final class JJ_404_to_301 {
50
 
51
  // Include required files.
52
  self::$instance->includes();
53
- // Run activation actions.
54
- self::$instance->activate();
55
  // Load translation support.
56
  self::$instance->locale();
57
 
@@ -88,7 +86,6 @@ final class JJ_404_to_301 {
88
 
89
  include_once JJ4T3_DIR . 'includes/functions/jj4t3-general-functions.php';
90
  include_once JJ4T3_DIR . 'includes/class-jj4t3-i18n.php';
91
- include_once JJ4T3_DIR . 'includes/class-jj4t3-activator-deactivator-uninstaller.php';
92
 
93
  // Required only when not admin.
94
  if ( ! is_admin() ) {
@@ -105,23 +102,6 @@ final class JJ_404_to_301 {
105
  }
106
  }
107
 
108
- /**
109
- * Plugin activation actions.
110
- *
111
- * Actions to perform during plugin activation.
112
- * We will be registering default options in this function.
113
- *
114
- * @uses register_activation_hook() To register activation hook.
115
- * @since 3.0.0
116
- * @access private
117
- *
118
- * @return void
119
- */
120
- private function activate() {
121
-
122
- register_activation_hook( JJ4T3_BASE_FILE, array( 'JJ4T3_Activator_Deactivator_Uninstaller', 'activate' ) );
123
- }
124
-
125
  /**
126
  * Initialize internationalization class.
127
  *
50
 
51
  // Include required files.
52
  self::$instance->includes();
 
 
53
  // Load translation support.
54
  self::$instance->locale();
55
 
86
 
87
  include_once JJ4T3_DIR . 'includes/functions/jj4t3-general-functions.php';
88
  include_once JJ4T3_DIR . 'includes/class-jj4t3-i18n.php';
 
89
 
90
  // Required only when not admin.
91
  if ( ! is_admin() ) {
102
  }
103
  }
104
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
105
  /**
106
  * Initialize internationalization class.
107
  *
includes/class-jj4t3-activator-deactivator-uninstaller.php CHANGED
@@ -30,6 +30,7 @@ class JJ4T3_Activator_Deactivator_Uninstaller {
30
  * @return void
31
  */
32
  public static function activate() {
 
33
 
34
  // Default settings for our plugin.
35
  $options = array(
30
  * @return void
31
  */
32
  public static function activate() {
33
+ error_log('activated');
34
 
35
  // Default settings for our plugin.
36
  $options = array(
languages/404-to-301.pot CHANGED
@@ -1,14 +1,14 @@
1
- # Copyright (C) 2020 Joel James
2
  # This file is distributed under the GPL-2.0+.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: 404 to 301 - Redirect, Log and Notify 404 Errors 3.0.6\n"
6
  "Report-Msgid-Bugs-To: https://duckdev.com/products/404-to-301/\n"
7
- "POT-Creation-Date: 2020-12-18 09:32:42+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=utf-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
11
- "PO-Revision-Date: 2020-MO-DA HO:MI+ZONE\n"
12
  "Last-Translator: Joel James <me@joelsays.com>\n"
13
  "Language-Team: Joel James <me@joelsays.com>\n"
14
  "Language: en\n"
1
+ # Copyright (C) 2021 Joel James
2
  # This file is distributed under the GPL-2.0+.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: 404 to 301 - Redirect, Log and Notify 404 Errors 3.0.7\n"
6
  "Report-Msgid-Bugs-To: https://duckdev.com/products/404-to-301/\n"
7
+ "POT-Creation-Date: 2021-01-28 06:10:51+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=utf-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
11
+ "PO-Revision-Date: 2021-MO-DA HO:MI+ZONE\n"
12
  "Last-Translator: Joel James <me@joelsays.com>\n"
13
  "Language-Team: Joel James <me@joelsays.com>\n"
14
  "Language: en\n"
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: joelcj91,duckdev
3
  Tags: 404, 301, 302, 307, not found, 404 redirect, 404 to 301, 301 redirect, seo redirect, error redirect, 404 seo, custom 404 page
4
  Donate link: https://www.paypal.me/JoelCJ
5
  Requires at least: 3.5
6
- Tested up to: 5.6
7
- Stable tag: 3.0.6
8
  Requires PHP: 5.6
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
@@ -19,16 +19,6 @@ If you care about your website, you should take steps to avoid 404 errors as it
19
 
20
  *Handling 404 errors in your site should be easy. With this plugin, it finally is.*
21
 
22
- > #### 404 to 301 Log Manager - Add-on is now available!
23
- >
24
- > - Instead of instant email alerts, get **hourly, twice daily, daily, twice weekly, weekly** alerts.<br />
25
- > - Limit the amount of emails sent out based on error logs count.<br />
26
- > - **PDF file** attachment of error logs will be delivered through the email.<br />
27
- > - **Automatically clear** old error logs based on time period.<br />
28
- > - Get email alerts to multiple email recipients.<br />
29
- >
30
- > [Get this add-on now](https://duckdev.com/products/404-to-301-log-manager/) | [See Docs](https://duckdev.com/docs/404-to-301/)
31
-
32
  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!
33
  You will not see any 404 error reports in your webmaster tool dashboard.
34
 
@@ -50,12 +40,12 @@ You will not see any 404 error reports in your webmaster tool dashboard.
50
  > - Follows best WordPress coding standards.<br />
51
  > - Of course, available in [GitHub](https://github.com/joel-james/404-to-301)<br />
52
  >
53
- > [Installation](https://wordpress.org/plugins/404-to-301/installation/) | [Docs](https://duckdev.com/docs/404-to-301/) | [Screenshots](https://wordpress.org/plugins/404-to-301/screenshots/)
54
 
55
 
56
  **Bug Reports**
57
 
58
- Bug reports for 404 to 301 are always welcome. [Report here](https://duckdev.com/contact/).
59
 
60
  **More information**
61
 
@@ -80,7 +70,7 @@ If you are confused with these terms 404,301, redirect etc, [refer this page](ht
80
 
81
 
82
  = Need more help? =
83
- Please take a look at the [plugin documentation](https://duckdev.com/docs/404-to-301/) or [open a support request](http://wordpress.org/support/plugin/404-to-301/).
84
 
85
  = Missing something? =
86
  If you would like to have an additional feature for this plugin, [let me know](https://duckdev.com/support/)
@@ -109,14 +99,14 @@ Yes. You can set that from error logs table.
109
 
110
  = I need more details =
111
 
112
- Please take a look at the [plugin documentation](https://duckdev.com/docs/404-to-301/) or [open a support request](http://wordpress.org/support/plugin/404-to-301/).
113
 
114
 
115
  == Other Notes ==
116
 
117
  = Bug Reports =
118
 
119
- Bug reports for 404 to 301 are always welcome. [Report here](https://duckdev.com/contact/).
120
 
121
 
122
  == Screenshots ==
@@ -128,6 +118,12 @@ Bug reports for 404 to 301 are always welcome. [Report here](https://duckdev.com
128
 
129
  == Changelog ==
130
 
 
 
 
 
 
 
131
  = 3.0.6 (18/12/2020) =
132
  **👌 Improvements**
133
 
@@ -421,9 +417,8 @@ Bug reports for 404 to 301 are always welcome. [Report here](https://duckdev.com
421
 
422
  == Upgrade Notice ==
423
 
424
- = 3.0.6 (18/12/2019) =
425
- **👌 Improvements**
426
 
427
- * Tested with WP 5.6.
428
- * Small improvements.
429
- * Temporarily disabled Freemius SDK.
3
  Tags: 404, 301, 302, 307, not found, 404 redirect, 404 to 301, 301 redirect, seo redirect, error redirect, 404 seo, custom 404 page
4
  Donate link: https://www.paypal.me/JoelCJ
5
  Requires at least: 3.5
6
+ Tested up to: 5.7
7
+ Stable tag: 3.0.7
8
  Requires PHP: 5.6
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
19
 
20
  *Handling 404 errors in your site should be easy. With this plugin, it finally is.*
21
 
 
 
 
 
 
 
 
 
 
 
22
  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!
23
  You will not see any 404 error reports in your webmaster tool dashboard.
24
 
40
  > - Follows best WordPress coding standards.<br />
41
  > - Of course, available in [GitHub](https://github.com/joel-james/404-to-301)<br />
42
  >
43
+ > [Installation](https://wordpress.org/plugins/404-to-301/installation/) | [Docs](https://duckdev.com/support/docs/404-to-301/) | [Screenshots](https://wordpress.org/plugins/404-to-301/screenshots/)
44
 
45
 
46
  **Bug Reports**
47
 
48
+ Bug reports for 404 to 301 are always welcome. [Report here](https://duckdev.com/support/).
49
 
50
  **More information**
51
 
70
 
71
 
72
  = Need more help? =
73
+ Please take a look at the [plugin documentation](https://duckdev.com/support/docs/404-to-301/) or [open a support request](http://wordpress.org/support/plugin/404-to-301/).
74
 
75
  = Missing something? =
76
  If you would like to have an additional feature for this plugin, [let me know](https://duckdev.com/support/)
99
 
100
  = I need more details =
101
 
102
+ Please take a look at the [plugin documentation](https://duckdev.com/support/docs/404-to-301/) or [open a support request](http://wordpress.org/support/plugin/404-to-301/).
103
 
104
 
105
  == Other Notes ==
106
 
107
  = Bug Reports =
108
 
109
+ Bug reports for 404 to 301 are always welcome. [Report here](https://duckdev.com/support/).
110
 
111
 
112
  == Screenshots ==
118
 
119
  == Changelog ==
120
 
121
+ = 3.0.7 (28/01/2021) =
122
+ **🐛 Bug Fixes**
123
+
124
+ * Activation hook was not being executed.
125
+ * Table creation failed in new installations.
126
+
127
  = 3.0.6 (18/12/2020) =
128
  **👌 Improvements**
129
 
417
 
418
  == Upgrade Notice ==
419
 
420
+ = 3.0.7 (28/01/2021) =
421
+ **🐛 Bug Fixes**
422
 
423
+ * Activation hook was not being executed.
424
+ * Table creation failed in new installations.