Version Description
(20/12/2015) = Bug Fixes
- Fixed issues with older version of WordPress.
- Fixed issues with older version of PHP.
Download this release
Release Info
| Developer | joelcj91 |
| Plugin | |
| Version | 2.1.3 |
| Comparing to | |
| See all releases | |
Code changes from version 2.1.2 to 2.1.3
- 404-to-301.php +3 -3
- admin/class-404-to-301-logs.php +4 -4
- includes/class-404-to-301.php +1 -1
- readme.txt +3 -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.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.3
|
| 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.3
|
| 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.3' );
|
| 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-logs.php
CHANGED
|
@@ -138,8 +138,8 @@ class _404_To_301_Logs extends WP_List_Table_404 {
|
|
| 138 |
|
| 139 |
$wpdb->delete(
|
| 140 |
self::$table,
|
| 141 |
-
|
| 142 |
-
|
| 143 |
);
|
| 144 |
}
|
| 145 |
|
|
@@ -247,9 +247,9 @@ class _404_To_301_Logs extends WP_List_Table_404 {
|
|
| 247 |
|
| 248 |
$title = apply_filters( 'i4t3_log_list_date_column', date("j M Y, g:i a", strtotime($item['date'])) );
|
| 249 |
$confirm = __( 'Are you sure you want to delete this item?', '404-to-301' );
|
| 250 |
-
$actions =
|
| 251 |
'delete' => sprintf( '<a href="?page=%s&action=%s&log=%s&_wpnonce=%s" onclick="return confirm(\'%s\');">'. __( 'Delete', '404-to-301' ) .'</a>', esc_attr( $_REQUEST['page'] ), 'delete', absint( $item['id'] ), $delete_nonce, $confirm )
|
| 252 |
-
|
| 253 |
|
| 254 |
return $title . $this->row_actions( $actions );
|
| 255 |
}
|
| 138 |
|
| 139 |
$wpdb->delete(
|
| 140 |
self::$table,
|
| 141 |
+
array( 'id' => $id ),
|
| 142 |
+
array( '%d' )
|
| 143 |
);
|
| 144 |
}
|
| 145 |
|
| 247 |
|
| 248 |
$title = apply_filters( 'i4t3_log_list_date_column', date("j M Y, g:i a", strtotime($item['date'])) );
|
| 249 |
$confirm = __( 'Are you sure you want to delete this item?', '404-to-301' );
|
| 250 |
+
$actions = array(
|
| 251 |
'delete' => sprintf( '<a href="?page=%s&action=%s&log=%s&_wpnonce=%s" onclick="return confirm(\'%s\');">'. __( 'Delete', '404-to-301' ) .'</a>', esc_attr( $_REQUEST['page'] ), 'delete', absint( $item['id'] ), $delete_nonce, $confirm )
|
| 252 |
+
);
|
| 253 |
|
| 254 |
return $title . $this->row_actions( $actions );
|
| 255 |
}
|
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();
|
| 67 |
public function __construct() {
|
| 68 |
|
| 69 |
$this->plugin_name = '404-to-301';
|
| 70 |
+
$this->version = '2.1.3';
|
| 71 |
$this->table = $GLOBALS['wpdb']->prefix . '404_to_301';
|
| 72 |
$this->load_dependencies();
|
| 73 |
$this->set_locale();
|
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.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,7 +112,7 @@ Bug reports for 404 to 301 are always welcome. [Report here](http://iscode.co/bu
|
|
| 112 |
|
| 113 |
== Changelog ==
|
| 114 |
|
| 115 |
-
= 2.1.
|
| 116 |
**Bug Fixes**
|
| 117 |
|
| 118 |
- Fixed issues with older version of WordPress.
|
|
@@ -235,7 +235,7 @@ 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 with older version of WordPress.
|
| 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.3
|
| 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.3 (20/12/2015) =
|
| 116 |
**Bug Fixes**
|
| 117 |
|
| 118 |
- Fixed issues with older version of WordPress.
|
| 235 |
|
| 236 |
== Upgrade Notice ==
|
| 237 |
|
| 238 |
+
= 2.1.3 (20/12/2015) =
|
| 239 |
**Bug Fixes**
|
| 240 |
|
| 241 |
- Fixed issues with older version of WordPress.
|
