Advanced Database Cleaner - Version 3.0.4

Version Description

  • 21/01/2022 =
  • Tweak: Enhancing the security of the plugin
  • Tweak: Testing the plugin with latest versions of WP
Download this release

Release Info

Developer symptote
Plugin Icon 128x128 Advanced Database Cleaner
Version 3.0.4
Comparing to
See all releases

Code changes from version 3.0.3 to 3.0.4

README.txt CHANGED
@@ -4,8 +4,8 @@ Donate Link: https://www.sigmaplugin.com/donation
4
  Tags: clean, clean up, cleanup, database, optimize, performance, speed, optimizing, clean-up, orphan, orphaned, tables, options
5
  Requires at least: 3.1.0
6
  Requires PHP: 5.0
7
- Tested up to: 5.8
8
- Stable tag: 3.0.3
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -140,6 +140,10 @@ This section describes how to install the plugin. In general, there are 3 ways t
140
 
141
  == Changelog ==
142
 
 
 
 
 
143
  = 3.0.3 - 06/10/2020 =
144
  - Tweak: Cleaning the code by deleting unused blocks of code
145
  - Tweak: Enhancing the security of the plugin
4
  Tags: clean, clean up, cleanup, database, optimize, performance, speed, optimizing, clean-up, orphan, orphaned, tables, options
5
  Requires at least: 3.1.0
6
  Requires PHP: 5.0
7
+ Tested up to: 6.0
8
+ Stable tag: 3.0.4
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
140
 
141
  == Changelog ==
142
 
143
+ = 3.0.4 - 21/01/2022 =
144
+ - Tweak: Enhancing the security of the plugin
145
+ - Tweak: Testing the plugin with latest versions of WP
146
+
147
  = 3.0.3 - 06/10/2020 =
148
  - Tweak: Cleaning the code by deleting unused blocks of code
149
  - Tweak: Enhancing the security of the plugin
advanced-db-cleaner.php CHANGED
@@ -5,7 +5,7 @@ if (!is_main_site()) return;
5
  Plugin Name: Advanced Database Cleaner
6
  Plugin URI: https://sigmaplugin.com/downloads/wordpress-advanced-database-cleaner
7
  Description: Clean database by deleting unused data such as 'old revisions', 'old drafts', 'orphan options', etc. Optimize database and more.
8
- Version: 3.0.3
9
  Author: Younes JFR.
10
  Author URI: https://www.sigmaplugin.com
11
  Contributors: symptote
@@ -29,7 +29,7 @@ class ADBC_Advanced_DB_Cleaner {
29
  public function __construct(){
30
 
31
  // Define common constants that should be modified in each version
32
- if(!defined("ADBC_PLUGIN_VERSION")) define("ADBC_PLUGIN_VERSION", "3.0.3");
33
 
34
  // Prevent conflicts between free and pro, load text-domain and check if should update settings after upgrade
35
  add_action('plugins_loaded', array($this, 'plugins_loaded'));
5
  Plugin Name: Advanced Database Cleaner
6
  Plugin URI: https://sigmaplugin.com/downloads/wordpress-advanced-database-cleaner
7
  Description: Clean database by deleting unused data such as 'old revisions', 'old drafts', 'orphan options', etc. Optimize database and more.
8
+ Version: 3.0.4
9
  Author: Younes JFR.
10
  Author URI: https://www.sigmaplugin.com
11
  Contributors: symptote
29
  public function __construct(){
30
 
31
  // Define common constants that should be modified in each version
32
+ if(!defined("ADBC_PLUGIN_VERSION")) define("ADBC_PLUGIN_VERSION", "3.0.4");
33
 
34
  // Prevent conflicts between free and pro, load text-domain and check if should update settings after upgrade
35
  add_action('plugins_loaded', array($this, 'plugins_loaded'));
includes/custom-clean-view/header_page_custom_clean.php CHANGED
@@ -5,6 +5,7 @@
5
  </div>
6
 
7
  <div>
 
8
  <div class="aDBc-float-right aDBc-custom-clean-text">
9
  <div>
10
  <?php echo __('Custom cleaning of','advanced-database-cleaner') . " : <strong>" . $this->aDBc_plural_title . "</strong> - " . __('Total Found','advanced-database-cleaner') . " : <b><span style='background:#ffe4b5;border-radius:8px;padding:2px 6px'>" . count($this->aDBc_elements_to_display) . "</span></b>"; ?>
@@ -23,8 +24,11 @@
23
  <?php
24
  // Generate current parameters in URL
25
  foreach($_GET as $name => $value){
26
- if($name != "s" && $name != "in" && $name != "paged")
 
 
27
  echo "<input type='hidden' name='$name' value='$value'/>";
 
28
  }
29
  // Return paged to page 1
30
  echo "<input type='hidden' name='paged' value='1'/>";
@@ -57,8 +61,11 @@
57
  <?php
58
  // Generate current parameters in URL
59
  foreach($_GET as $name => $value){
60
- if($name != "per_page" && $name != "paged")
 
 
61
  echo "<input type='hidden' name='$name' value='$value'/>";
 
62
  }
63
  // Return paged to page 1
64
  echo "<input type='hidden' name='paged' value='1'/>";
5
  </div>
6
 
7
  <div>
8
+
9
  <div class="aDBc-float-right aDBc-custom-clean-text">
10
  <div>
11
  <?php echo __('Custom cleaning of','advanced-database-cleaner') . " : <strong>" . $this->aDBc_plural_title . "</strong> - " . __('Total Found','advanced-database-cleaner') . " : <b><span style='background:#ffe4b5;border-radius:8px;padding:2px 6px'>" . count($this->aDBc_elements_to_display) . "</span></b>"; ?>
24
  <?php
25
  // Generate current parameters in URL
26
  foreach($_GET as $name => $value){
27
+ if($name != "s" && $name != "in" && $name != "paged"){
28
+ $name = esc_attr(sanitize_text_field($name));
29
+ $value = esc_attr(sanitize_text_field($value));
30
  echo "<input type='hidden' name='$name' value='$value'/>";
31
+ }
32
  }
33
  // Return paged to page 1
34
  echo "<input type='hidden' name='paged' value='1'/>";
61
  <?php
62
  // Generate current parameters in URL
63
  foreach($_GET as $name => $value){
64
+ if($name != "per_page" && $name != "paged"){
65
+ $name = esc_attr(sanitize_text_field($name));
66
+ $value = esc_attr(sanitize_text_field($value));
67
  echo "<input type='hidden' name='$name' value='$value'/>";
68
+ }
69
  }
70
  // Return paged to page 1
71
  echo "<input type='hidden' name='paged' value='1'/>";
includes/header_page_filter.php CHANGED
@@ -12,8 +12,11 @@
12
  <?php
13
  // Generate current parameters in URL
14
  foreach($_GET as $name => $value){
15
- if($name != "s" && $name != "paged" && $name != "aDBc_cat")
 
 
16
  echo "<input type='hidden' name='$name' value='$value'/>";
 
17
  }
18
  // Return always paged to page 1
19
  echo "<input type='hidden' name='paged' value='1'/>";
@@ -123,8 +126,11 @@
123
  <?php
124
  // Generate current parameters in URL
125
  foreach($_GET as $name => $value){
126
- if($name != "per_page" && $name != "paged")
 
 
127
  echo "<input type='hidden' name='$name' value='$value'/>";
 
128
  }
129
  // Return paged to page 1
130
  echo "<input type='hidden' name='paged' value='1'/>";
12
  <?php
13
  // Generate current parameters in URL
14
  foreach($_GET as $name => $value){
15
+ if($name != "s" && $name != "paged" && $name != "aDBc_cat"){
16
+ $name = esc_attr(sanitize_text_field($name));
17
+ $value = esc_attr(sanitize_text_field($value));
18
  echo "<input type='hidden' name='$name' value='$value'/>";
19
+ }
20
  }
21
  // Return always paged to page 1
22
  echo "<input type='hidden' name='paged' value='1'/>";
126
  <?php
127
  // Generate current parameters in URL
128
  foreach($_GET as $name => $value){
129
+ if($name != "per_page" && $name != "paged"){
130
+ $name = esc_attr(sanitize_text_field($name));
131
+ $value = esc_attr(sanitize_text_field($value));
132
  echo "<input type='hidden' name='$name' value='$value'/>";
133
+ }
134
  }
135
  // Return paged to page 1
136
  echo "<input type='hidden' name='paged' value='1'/>";