Version Description
(2/11/2015) = Bug Fixes
- Fixed issue - Empty needle issue after 2.0.8 update.
Download this release
Release Info
Developer | joelcj91 |
Plugin | 404 to 301 |
Version | 2.0.9 |
Comparing to | |
See all releases |
Code changes from version 2.0.8 to 2.0.9
- 404-to-301.php +2 -2
- includes/class-404-to-301.php +1 -1
- public/class-404-to-301-public.php +4 -1
- readme.txt +8 -3
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.0.
|
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
|
@@ -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.0.
|
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.0.9
|
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
|
52 |
define( 'I4T3_DB_VERSION', '3' );
|
53 |
}
|
54 |
if(!defined('I4T3_VERSION')) {
|
55 |
+
define( 'I4T3_VERSION', '2.0.9' );
|
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')) {
|
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.0.
|
71 |
$this->table = $GLOBALS['wpdb']->prefix . '404_to_301';
|
72 |
$this->load_dependencies();
|
73 |
$this->set_locale();
|
67 |
public function __construct() {
|
68 |
|
69 |
$this->plugin_name = '404-to-301';
|
70 |
+
$this->version = '2.0.9';
|
71 |
$this->table = $GLOBALS['wpdb']->prefix . '404_to_301';
|
72 |
$this->load_dependencies();
|
73 |
$this->set_locale();
|
public/class-404-to-301-public.php
CHANGED
@@ -243,10 +243,13 @@ class _404_To_301_Public {
|
|
243 |
|
244 |
// Add links to be excluded in this array.
|
245 |
$links_string = $this->gnrl_options['exclude_paths'];
|
|
|
|
|
|
|
246 |
$links = explode( "\n", $links_string );
|
247 |
if( !empty( $links ) ) {
|
248 |
foreach( $links as $link ){
|
249 |
-
if( strpos($_SERVER['REQUEST_URI'], trim($link) )!== false )
|
250 |
return true;
|
251 |
}
|
252 |
}
|
243 |
|
244 |
// Add links to be excluded in this array.
|
245 |
$links_string = $this->gnrl_options['exclude_paths'];
|
246 |
+
if( empty( $links_string ) ) {
|
247 |
+
return false;
|
248 |
+
}
|
249 |
$links = explode( "\n", $links_string );
|
250 |
if( !empty( $links ) ) {
|
251 |
foreach( $links as $link ){
|
252 |
+
if( strpos( $_SERVER['REQUEST_URI'], trim($link) )!== false )
|
253 |
return true;
|
254 |
}
|
255 |
}
|
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.3.1
|
7 |
-
Stable tag: 2.0.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -112,6 +112,11 @@ Bug reports for 404 to 301 are always welcome. [Report here](http://iscode.co/bu
|
|
112 |
|
113 |
== Changelog ==
|
114 |
|
|
|
|
|
|
|
|
|
|
|
115 |
= 2.0.8 (28/10/2015) =
|
116 |
**New Feature**
|
117 |
|
@@ -209,5 +214,5 @@ Bug reports for 404 to 301 are always welcome. [Report here](http://iscode.co/bu
|
|
209 |
|
210 |
== Upgrade Notice ==
|
211 |
|
212 |
-
= 2.0.
|
213 |
-
-
|
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.3.1
|
7 |
+
Stable tag: 2.0.9
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
112 |
|
113 |
== Changelog ==
|
114 |
|
115 |
+
= 2.0.9 (2/11/2015) =
|
116 |
+
**Bug Fixes**
|
117 |
+
|
118 |
+
- Fixed issue - Empty needle issue after 2.0.8 update.
|
119 |
+
|
120 |
= 2.0.8 (28/10/2015) =
|
121 |
**New Feature**
|
122 |
|
214 |
|
215 |
== Upgrade Notice ==
|
216 |
|
217 |
+
= 2.0.9 =
|
218 |
+
- Fixed issue - Empty needle issue after 2.0.8 update.
|