Redirection - Version 2.3.14

Version Description

  • Remove error_log statements
  • Fix incorrect table name when exporting 404 errors, props to brazenest/synchronos-t
Download this release

Release Info

Developer johnny5
Plugin Icon 128x128 Redirection
Version 2.3.14
Comparing to
See all releases

Code changes from version 2.3.13 to 2.3.14

Files changed (4) hide show
  1. models/flusher.php +0 -3
  2. models/log.php +1 -1
  3. readme.txt +5 -1
  4. redirection.php +1 -1
models/flusher.php CHANGED
@@ -13,14 +13,11 @@ class Red_Flusher {
13
  $total += $this->expire_logs( $options['expire_redirect'] );
14
  $total += $this->expire_404( $options['expire_404'] );
15
 
16
- error_log('WPCRON: flushing '.$total);
17
-
18
  if ( $total >= self::DELETE_MAX ) {
19
  $next = time() + self::DELETE_KEEP_ON;
20
 
21
  // There are still more logs to clear - keep on doing until we've clean or until the next normal event
22
  if ( $next < wp_next_scheduled( self::DELETE_HOOK ) ) {
23
- error_log('WPCRON: scheduling a single event '.date( 'Y-m-d H:i:s', time() + self::DELETE_KEEP_ON ));
24
  wp_schedule_single_event( time() + ( self::DELETE_KEEP_ON * 60 ), self::DELETE_HOOK );
25
  }
26
  }
13
  $total += $this->expire_logs( $options['expire_redirect'] );
14
  $total += $this->expire_404( $options['expire_404'] );
15
 
 
 
16
  if ( $total >= self::DELETE_MAX ) {
17
  $next = time() + self::DELETE_KEEP_ON;
18
 
19
  // There are still more logs to clear - keep on doing until we've clean or until the next normal event
20
  if ( $next < wp_next_scheduled( self::DELETE_HOOK ) ) {
 
21
  wp_schedule_single_event( time() + ( self::DELETE_KEEP_ON * 60 ), self::DELETE_HOOK );
22
  }
23
  }
models/log.php CHANGED
@@ -241,7 +241,7 @@ class RE_404 {
241
  fputcsv( $stdout, array( 'date', 'source', 'ip', 'referrer' ) );
242
 
243
  $extra = '';
244
- $sql = "SELECT COUNT(*) FROM {$wpdb->prefix}redirection_logs";
245
  if ( isset( $_REQUEST['s'] ) )
246
  $extra = $wpdb->prepare( " WHERE url LIKE %s", '%'.like_escape( $_REQUEST['s'] ).'%' );
247
 
241
  fputcsv( $stdout, array( 'date', 'source', 'ip', 'referrer' ) );
242
 
243
  $extra = '';
244
+ $sql = "SELECT COUNT(*) FROM {$wpdb->prefix}redirection_404";
245
  if ( isset( $_REQUEST['s'] ) )
246
  $extra = $wpdb->prepare( " WHERE url LIKE %s", '%'.like_escape( $_REQUEST['s'] ).'%' );
247
 
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://urbangiraffe.com/about/
4
  Tags: post, admin, seo, pages, manage, 301, 404, redirect, permalink
5
  Requires at least: 3.4
6
  Tested up to: 4.2
7
- Stable tag: 2.3.13
8
 
9
  Redirection is a WordPress plugin to manage 301 redirections and keep track of 404 errors without requiring knowledge of Apache .htaccess files.
10
 
@@ -94,6 +94,10 @@ The plugin works in a similar manner to how WordPress handles permalinks and sho
94
 
95
  == Changelog ==
96
 
 
 
 
 
97
  = 2.3.13 =
98
  * Split admin and front-end code out to streamline the loading a bit
99
  * Fix bad groups link when viewing redirects in a group, props to Patrick Fabre
4
  Tags: post, admin, seo, pages, manage, 301, 404, redirect, permalink
5
  Requires at least: 3.4
6
  Tested up to: 4.2
7
+ Stable tag: 2.3.14
8
 
9
  Redirection is a WordPress plugin to manage 301 redirections and keep track of 404 errors without requiring knowledge of Apache .htaccess files.
10
 
94
 
95
  == Changelog ==
96
 
97
+ = 2.3.14 =
98
+ * Remove error_log statements
99
+ * Fix incorrect table name when exporting 404 errors, props to brazenest/synchronos-t
100
+
101
  = 2.3.13 =
102
  * Split admin and front-end code out to streamline the loading a bit
103
  * Fix bad groups link when viewing redirects in a group, props to Patrick Fabre
redirection.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Redirection
4
  Plugin URI: http://urbangiraffe.com/plugins/redirection/
5
  Description: Manage all your 301 redirects and monitor 404 errors
6
- Version: 2.3.13
7
  Author: John Godley
8
  Author URI: http://urbangiraffe.com
9
  ============================================================================================================
3
  Plugin Name: Redirection
4
  Plugin URI: http://urbangiraffe.com/plugins/redirection/
5
  Description: Manage all your 301 redirects and monitor 404 errors
6
+ Version: 2.3.14
7
  Author: John Godley
8
  Author URI: http://urbangiraffe.com
9
  ============================================================================================================