Optimize Database after Deleting Revisions - Version 4.2.1

Version Description

[09/23/2016] = * CHANGE: fixed some (innocent) warnings

Download this release

Release Info

Developer cageehv
Plugin Icon 128x128 Optimize Database after Deleting Revisions
Version 4.2.1
Comparing to
See all releases

Code changes from version 4.2.0 to 4.2.1

Files changed (3) hide show
  1. classes/odb-cleaner.php +13 -14
  2. readme.txt +6 -3
  3. rvg-optimize-database.php +4 -4
classes/odb-cleaner.php CHANGED
@@ -243,11 +243,10 @@ class ODB_Cleaner
243
  <?php
244
  } // if (!$scheduler)
245
  } // if(count($results)>0)
246
-
 
 
247
  } // if($odb_class->odb_rvg_options['clear_spam'] == 'Y')
248
-
249
- // NUMBER OF SPAM DELETED FOR LOG FILE
250
- $odb_class->log_arr["spam"] = $total_deleted;
251
 
252
 
253
  /****************************************************************************************
@@ -278,10 +277,10 @@ class ODB_Cleaner
278
  <?php
279
  } // if (!$scheduler)
280
  } // if(count($results)>0)
 
 
 
281
  } // if($odb_class->odb_rvg_options['clear_tags'] == 'Y')
282
-
283
- // NUMBER OF tags DELETED FOR LOG FILE
284
- $odb_class->log_arr["tags"] = $total_deleted;
285
 
286
 
287
  /****************************************************************************************
@@ -312,10 +311,10 @@ class ODB_Cleaner
312
  <?php
313
  } // if (!$scheduler)
314
  } // if(count($results)>0)
315
- } // if($odb_class->odb_rvg_options['clear_transients'] == 'Y')
316
 
317
- // NUMBER OF transients DELETED FOR LOG FILE
318
- $odb_class->log_arr["transients"] = $total_deleted;
 
319
 
320
 
321
  /****************************************************************************************
@@ -346,11 +345,11 @@ class ODB_Cleaner
346
  <?php
347
  } // if (!$scheduler)
348
  } // if(count($results)>0)
349
- } // if($odb_class->odb_rvg_options['clear_pingbacks'] == 'Y')
350
 
351
- // NUMBER OF pingbacks / trackbacks DELETED (FOR LOG FILE)
352
- $odb_class->log_arr["pingbacks"] = $total_deleted;
353
-
 
354
 
355
  /****************************************************************************************
356
  * DELETE ORPHANS
243
  <?php
244
  } // if (!$scheduler)
245
  } // if(count($results)>0)
246
+
247
+ // NUMBER OF SPAM DELETED FOR LOG FILE
248
+ $odb_class->log_arr["spam"] = $total_deleted;
249
  } // if($odb_class->odb_rvg_options['clear_spam'] == 'Y')
 
 
 
250
 
251
 
252
  /****************************************************************************************
277
  <?php
278
  } // if (!$scheduler)
279
  } // if(count($results)>0)
280
+
281
+ // NUMBER OF tags DELETED FOR LOG FILE
282
+ $odb_class->log_arr["tags"] = $total_deleted;
283
  } // if($odb_class->odb_rvg_options['clear_tags'] == 'Y')
 
 
 
284
 
285
 
286
  /****************************************************************************************
311
  <?php
312
  } // if (!$scheduler)
313
  } // if(count($results)>0)
 
314
 
315
+ // NUMBER OF transients DELETED FOR LOG FILE
316
+ $odb_class->log_arr["transients"] = $total_deleted;
317
+ } // if($odb_class->odb_rvg_options['clear_transients'] == 'Y')
318
 
319
 
320
  /****************************************************************************************
345
  <?php
346
  } // if (!$scheduler)
347
  } // if(count($results)>0)
 
348
 
349
+ // NUMBER OF pingbacks / trackbacks DELETED (FOR LOG FILE)
350
+ $odb_class->log_arr["pingbacks"] = $total_deleted;
351
+ } // if($odb_class->odb_rvg_options['clear_pingbacks'] == 'Y')
352
+
353
 
354
  /****************************************************************************************
355
  * DELETE ORPHANS
readme.txt CHANGED
@@ -7,9 +7,9 @@ Tags: database, delete, revisions, optimize, post, posts, page, pages, clean, cl
7
  Author URI: http://cagewebdev.com
8
  Author: CAGE Web Design | Rolf van Gelder, Eindhoven, The Netherlands
9
  Requires at least: 2.8
10
- Tested up to: 4.6.1
11
- Stable tag: 4.2.0
12
- Version: 4.2.0
13
  License: GPLv2 or later
14
 
15
  == Description ==
@@ -101,6 +101,9 @@ http://cagewebdev.com/index.php/wordpress-plugins/
101
  * If you run the plugin from any of the sites, it will cleanup ALL the sites in the network!
102
 
103
  == Changelog ==
 
 
 
104
  = 4.2.0 [09/16/2016] =
105
  * NEW: Added a 'monthly' schedule to the scheduler
106
 
7
  Author URI: http://cagewebdev.com
8
  Author: CAGE Web Design | Rolf van Gelder, Eindhoven, The Netherlands
9
  Requires at least: 2.8
10
+ Tested up to: 4.7.3
11
+ Stable tag: 4.2.1
12
+ Version: 4.2.1
13
  License: GPLv2 or later
14
 
15
  == Description ==
101
  * If you run the plugin from any of the sites, it will cleanup ALL the sites in the network!
102
 
103
  == Changelog ==
104
+ = 4.2.1 [09/23/2016] =
105
+ * CHANGE: fixed some (innocent) warnings
106
+
107
  = 4.2.0 [09/16/2016] =
108
  * NEW: Added a 'monthly' schedule to the scheduler
109
 
rvg-optimize-database.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  /**
3
  * @package Optimize Database after Deleting Revisions
4
- * @version 4.2.0
5
  */
6
  /*
7
  Plugin Name: Optimize Database after Deleting Revisions
@@ -10,7 +10,7 @@ Description: Optimizes the Wordpress Database after Cleaning it out
10
  Author: CAGE Web Design | Rolf van Gelder, Eindhoven, The Netherlands
11
  Author URI: http://cagewebdev.com
12
  Network: True
13
- Version: 4.2.0
14
  */
15
 
16
  /********************************************************************************************
@@ -25,8 +25,8 @@ $odb_class = new OptimizeDatabase();
25
  class OptimizeDatabase
26
  {
27
  // VERSION
28
- var $odb_version = '4.2.0';
29
- var $odb_release_date = '09/16/2016';
30
 
31
  // PLUGIN OPTIONS
32
  var $odb_rvg_options = array();
1
  <?php
2
  /**
3
  * @package Optimize Database after Deleting Revisions
4
+ * @version 4.2.1
5
  */
6
  /*
7
  Plugin Name: Optimize Database after Deleting Revisions
10
  Author: CAGE Web Design | Rolf van Gelder, Eindhoven, The Netherlands
11
  Author URI: http://cagewebdev.com
12
  Network: True
13
+ Version: 4.2.1
14
  */
15
 
16
  /********************************************************************************************
25
  class OptimizeDatabase
26
  {
27
  // VERSION
28
+ var $odb_version = '4.2.1';
29
+ var $odb_release_date = '09/23/2016';
30
 
31
  // PLUGIN OPTIONS
32
  var $odb_rvg_options = array();