Version Description
(22/01/2016) = Bug Fixes
- Fixed issues when clearing logs (header already sent..).
- Tested with WordPress 4.4.1.
Download this release
Release Info
Developer | joelcj91 |
Plugin | 404 to 301 |
Version | 2.1.4 |
Comparing to | |
See all releases |
Code changes from version 2.1.3 to 2.1.4
- 404-to-301.php +3 -3
- admin/class-404-to-301-admin.php +16 -1
- includes/class-404-to-301.php +2 -1
- readme.txt +11 -5
404-to-301.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: 404 to 301
|
4 |
* Plugin URI: http://iscode.co/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 |
* Author: Joel James
|
8 |
* Author URI: http://iscode.co/
|
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.
|
32 |
*/
|
33 |
|
34 |
// If this file is called directly, abort.
|
@@ -52,7 +52,7 @@ if(!defined('I4T3_DB_VERSION')) {
|
|
52 |
define( 'I4T3_DB_VERSION', '3' );
|
53 |
}
|
54 |
if(!defined('I4T3_VERSION')) {
|
55 |
-
define( 'I4T3_VERSION', '2.1.
|
56 |
}
|
57 |
// Set who all can access 404 settings. You can change this if you want to give others access.
|
58 |
if(!defined('I4T3_ADMIN_PERMISSION')) {
|
3 |
* Plugin Name: 404 to 301
|
4 |
* Plugin URI: http://iscode.co/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.4
|
7 |
* Author: Joel James
|
8 |
* Author URI: http://iscode.co/
|
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.4
|
32 |
*/
|
33 |
|
34 |
// If this file is called directly, abort.
|
52 |
define( 'I4T3_DB_VERSION', '3' );
|
53 |
}
|
54 |
if(!defined('I4T3_VERSION')) {
|
55 |
+
define( 'I4T3_VERSION', '2.1.4' );
|
56 |
}
|
57 |
// Set who all can access 404 settings. You can change this if you want to give others access.
|
58 |
if(!defined('I4T3_ADMIN_PERMISSION')) {
|
admin/class-404-to-301-admin.php
CHANGED
@@ -225,6 +225,19 @@ class _404_To_301_Admin {
|
|
225 |
|
226 |
$this->list_table = new _404_To_301_Logs( $this->table );
|
227 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
228 |
|
229 |
|
230 |
/**
|
@@ -386,7 +399,9 @@ class _404_To_301_Admin {
|
|
386 |
// Output basic info about the site
|
387 |
$html .= '<h4>Basic Details</h4>
|
388 |
<p>
|
389 |
-
Version
|
|
|
|
|
390 |
Home Page : '. home_url() .'<br/>
|
391 |
</p><hr/>';
|
392 |
|
225 |
|
226 |
$this->list_table = new _404_To_301_Logs( $this->table );
|
227 |
}
|
228 |
+
|
229 |
+
|
230 |
+
/**
|
231 |
+
* Output buffer function
|
232 |
+
*
|
233 |
+
* To avoid header already sent issue
|
234 |
+
* @link https://tommcfarlin.com/wp_redirect-headers-already-sent/
|
235 |
+
* @since 2.1.4
|
236 |
+
*/
|
237 |
+
public function add_buffer() {
|
238 |
+
|
239 |
+
ob_start();
|
240 |
+
}
|
241 |
|
242 |
|
243 |
/**
|
399 |
// Output basic info about the site
|
400 |
$html .= '<h4>Basic Details</h4>
|
401 |
<p>
|
402 |
+
WordPress Version : '. get_bloginfo('version') .'<br/>
|
403 |
+
PHP Version : '. PHP_VERSION .'<br/>
|
404 |
+
Plugin Version : '. $this->version .'<br/>
|
405 |
Home Page : '. home_url() .'<br/>
|
406 |
</p><hr/>';
|
407 |
|
includes/class-404-to-301.php
CHANGED
@@ -67,7 +67,7 @@ class _404_To_301 {
|
|
67 |
public function __construct() {
|
68 |
|
69 |
$this->plugin_name = '404-to-301';
|
70 |
-
$this->version = '2.1.
|
71 |
$this->table = $GLOBALS['wpdb']->prefix . '404_to_301';
|
72 |
$this->load_dependencies();
|
73 |
$this->set_locale();
|
@@ -132,6 +132,7 @@ class _404_To_301 {
|
|
132 |
|
133 |
$plugin_admin = new _404_To_301_Admin( $this->get_plugin_name(), $this->get_version(), $this->get_table() );
|
134 |
|
|
|
135 |
$this->loader->add_action( 'admin_enqueue_scripts', $plugin_admin, 'enqueue_styles' );
|
136 |
$this->loader->add_action( 'admin_enqueue_scripts', $plugin_admin, 'enqueue_scripts' );
|
137 |
$this->loader->add_action( 'admin_menu', $plugin_admin, 'i4t3_create_404_to_301_menu');
|
67 |
public function __construct() {
|
68 |
|
69 |
$this->plugin_name = '404-to-301';
|
70 |
+
$this->version = '2.1.4';
|
71 |
$this->table = $GLOBALS['wpdb']->prefix . '404_to_301';
|
72 |
$this->load_dependencies();
|
73 |
$this->set_locale();
|
132 |
|
133 |
$plugin_admin = new _404_To_301_Admin( $this->get_plugin_name(), $this->get_version(), $this->get_table() );
|
134 |
|
135 |
+
$this->loader->add_filter( 'admin_init', $plugin_admin, 'add_buffer' );
|
136 |
$this->loader->add_action( 'admin_enqueue_scripts', $plugin_admin, 'enqueue_styles' );
|
137 |
$this->loader->add_action( 'admin_enqueue_scripts', $plugin_admin, 'enqueue_scripts' );
|
138 |
$this->loader->add_action( 'admin_menu', $plugin_admin, 'i4t3_create_404_to_301_menu');
|
readme.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: joelcj91,is_code
|
|
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.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=XUVWY8HUBUXY4
|
5 |
Requires at least: 3.0
|
6 |
-
Tested up to: 4.4
|
7 |
-
Stable tag: 2.1.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -112,6 +112,12 @@ Bug reports for 404 to 301 are always welcome. [Report here](http://iscode.co/bu
|
|
112 |
|
113 |
== Changelog ==
|
114 |
|
|
|
|
|
|
|
|
|
|
|
|
|
115 |
= 2.1.3 (20/12/2015) =
|
116 |
**Bug Fixes**
|
117 |
|
@@ -235,8 +241,8 @@ Bug reports for 404 to 301 are always welcome. [Report here](http://iscode.co/bu
|
|
235 |
|
236 |
== Upgrade Notice ==
|
237 |
|
238 |
-
= 2.1.
|
239 |
**Bug Fixes**
|
240 |
|
241 |
-
- Fixed issues
|
242 |
-
-
|
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.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=XUVWY8HUBUXY4
|
5 |
Requires at least: 3.0
|
6 |
+
Tested up to: 4.4.1
|
7 |
+
Stable tag: 2.1.4
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
112 |
|
113 |
== Changelog ==
|
114 |
|
115 |
+
= 2.1.4 (22/01/2016) =
|
116 |
+
**Bug Fixes**
|
117 |
+
|
118 |
+
- Fixed issues when clearing logs (header already sent..).
|
119 |
+
- Tested with WordPress 4.4.1.
|
120 |
+
|
121 |
= 2.1.3 (20/12/2015) =
|
122 |
**Bug Fixes**
|
123 |
|
241 |
|
242 |
== Upgrade Notice ==
|
243 |
|
244 |
+
= 2.1.4 (22/01/2016) =
|
245 |
**Bug Fixes**
|
246 |
|
247 |
+
- Fixed issues when clearing logs (header already sent..).
|
248 |
+
- Tested with WordPress 4.4.1.
|