Optimize Database after Deleting Revisions - Version 4.3.2

Version Description

[08/12/2017] = * CHANGE: fixed some (innocent) PHP warnings

Download this release

Release Info

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

Code changes from version 4.3.1 to 4.3.2

classes/odb-cleaner.php CHANGED
@@ -551,6 +551,10 @@ class ODB_Cleaner {
551
 
552
  $res_arr = array();
553
 
 
 
 
 
554
  $rev_post_type = $odb_class->odb_rvg_options['rev_post_type'];
555
  $where1 = '';
556
  if ($rev_post_type) $where1 = " AND p2.`post_type` = '" . $rev_post_type . "'";
551
 
552
  $res_arr = array();
553
 
554
+ if (!isset($odb_class->odb_rvg_options['rev_post_type'])) {
555
+ $odb_class->odb_rvg_options['rev_post_type'] = '';
556
+ }
557
+
558
  $rev_post_type = $odb_class->odb_rvg_options['rev_post_type'];
559
  $where1 = '';
560
  if ($rev_post_type) $where1 = " AND p2.`post_type` = '" . $rev_post_type . "'";
classes/odb-displayer.php CHANGED
@@ -95,6 +95,10 @@ class ODB_Displayer {
95
  <br><br>
96
  ';
97
 
 
 
 
 
98
  if ($odb_class->odb_rvg_options['rev_post_type'] == 'post')
99
  $rpt = __("POSTS only", $odb_class->odb_txt_domain);
100
  else if ($odb_class->odb_rvg_options['rev_post_type'] == 'page')
95
  <br><br>
96
  ';
97
 
98
+ if (!isset($odb_class->odb_rvg_options['rev_post_type'])) {
99
+ $odb_class->odb_rvg_options['rev_post_type'] = '';
100
+ }
101
+
102
  if ($odb_class->odb_rvg_options['rev_post_type'] == 'post')
103
  $rpt = __("POSTS only", $odb_class->odb_txt_domain);
104
  else if ($odb_class->odb_rvg_options['rev_post_type'] == 'page')
readme.txt CHANGED
@@ -8,8 +8,8 @@ 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.8.1
11
- Stable tag: 4.3.1
12
- Version: 4.3.1
13
  License: GPLv2 or later
14
 
15
  == Description ==
@@ -102,6 +102,9 @@ http://cagewebdev.com/wordpress-plugins/
102
  * If you run the plugin from any of the sites, it will cleanup ALL the sites in the network!
103
 
104
  == Changelog ==
 
 
 
105
  = 4.3.1 [08/10/2017] =
106
  * NEW: New option for deleting ALL transients (not the expired ones only)
107
 
8
  Author: CAGE Web Design | Rolf van Gelder, Eindhoven, The Netherlands
9
  Requires at least: 2.8
10
  Tested up to: 4.8.1
11
+ Stable tag: 4.3.2
12
+ Version: 4.3.2
13
  License: GPLv2 or later
14
 
15
  == Description ==
102
  * If you run the plugin from any of the sites, it will cleanup ALL the sites in the network!
103
 
104
  == Changelog ==
105
+ = 4.3.2 [08/12/2017] =
106
+ * CHANGE: fixed some (innocent) PHP warnings
107
+
108
  = 4.3.1 [08/10/2017] =
109
  * NEW: New option for deleting ALL transients (not the expired ones only)
110
 
rvg-optimize-database.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  /**
3
  * @package Optimize Database after Deleting Revisions
4
- * @version 4.3.1
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.3.1
14
  */
15
 
16
  /********************************************************************************************
@@ -24,8 +24,8 @@ $odb_class = new OptimizeDatabase();
24
 
25
  class OptimizeDatabase {
26
  // VERSION
27
- var $odb_version = '4.3.1';
28
- var $odb_release_date = '08/10/2017';
29
 
30
  // PLUGIN OPTIONS
31
  var $odb_rvg_options = array();
1
  <?php
2
  /**
3
  * @package Optimize Database after Deleting Revisions
4
+ * @version 4.3.2
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.3.2
14
  */
15
 
16
  /********************************************************************************************
24
 
25
  class OptimizeDatabase {
26
  // VERSION
27
+ var $odb_version = '4.3.2';
28
+ var $odb_release_date = '08/12/2017';
29
 
30
  // PLUGIN OPTIONS
31
  var $odb_rvg_options = array();