Version Description
- 24/06/2022 =
- Security fix: enhancing the security of the plugin by escaping some URLs before outputting them
Download this release
Release Info
Developer | symptote |
Plugin | Advanced Database Cleaner |
Version | 3.1.1 |
Comparing to | |
See all releases |
Code changes from version 3.1.0 to 3.1.1
- README.txt +5 -2
- advanced-db-cleaner.php +4 -4
- includes/class_clean_cron.php +1 -1
- includes/class_clean_options.php +1 -1
- includes/class_clean_tables.php +5 -5
- includes/class_general_cleanup.php +3 -3
- includes/custom-clean-view/header_page_custom_clean.php +1 -1
- includes/header_page_filter.php +1 -1
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: 6.
|
8 |
-
Stable tag: 3.1.
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
@@ -140,6 +140,9 @@ This section describes how to install the plugin. In general, there are 3 ways t
|
|
140 |
|
141 |
== Changelog ==
|
142 |
|
|
|
|
|
|
|
143 |
= 3.1.0 - 16/06/2022 =
|
144 |
- Fix: fixing the error 'Fatal error: Can't use function return value in write context'
|
145 |
- Fix: fixing the Warning: count(): Parameter must be an array or an object that implements Countable
|
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.1
|
8 |
+
Stable tag: 3.1.1
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
140 |
|
141 |
== Changelog ==
|
142 |
|
143 |
+
= 3.1.1 - 24/06/2022 =
|
144 |
+
- Security fix: enhancing the security of the plugin by escaping some URLs before outputting them
|
145 |
+
|
146 |
= 3.1.0 - 16/06/2022 =
|
147 |
- Fix: fixing the error 'Fatal error: Can't use function return value in write context'
|
148 |
- Fix: fixing the Warning: count(): Parameter must be an array or an object that implements Countable
|
advanced-db-cleaner.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
Plugin Name: Advanced Database Cleaner
|
5 |
Plugin URI: https://sigmaplugin.com/downloads/wordpress-advanced-database-cleaner
|
6 |
Description: Clean database by deleting unused data such as 'old revisions', 'old drafts', 'orphan options', etc. Optimize database and more.
|
7 |
-
Version: 3.1.
|
8 |
Author: Younes JFR.
|
9 |
Author URI: https://www.sigmaplugin.com
|
10 |
Contributors: symptote
|
@@ -30,7 +30,7 @@ class ADBC_Advanced_DB_Cleaner {
|
|
30 |
public function __construct() {
|
31 |
|
32 |
// Define constants that should be modified in each version
|
33 |
-
if( ! defined( "ADBC_PLUGIN_VERSION" ) ) define( "ADBC_PLUGIN_VERSION", "3.1.
|
34 |
if( ! defined( "ADBC_PLUGIN_PLAN" ) ) define( "ADBC_PLUGIN_PLAN", "free" );
|
35 |
|
36 |
// Prevent conflicts between free and pro, load text-domain and check if we should update settings after upgrade
|
@@ -635,7 +635,7 @@ class ADBC_Advanced_DB_Cleaner {
|
|
635 |
$aDBc_new_URI = $_SERVER['REQUEST_URI'];
|
636 |
$aDBc_new_URI = add_query_arg('adbc-ignore-notice', '0', $aDBc_new_URI);
|
637 |
echo '<div class="updated"><p>';
|
638 |
-
printf(__('Awesome! You have been using <a href="admin.php?page=advanced_db_cleaner">Advanced DB Cleaner</a> for more than 1 week. Would you mind taking a few seconds to give it a 5-star rating on WordPress? Thank you in advance :) <a href="%2$s" target="_blank">Ok, you deserved it</a> | <a href="%1$s">I already did</a> | <a href="%1$s">No, not good enough</a>', 'advanced-database-cleaner'), $aDBc_new_URI,
|
639 |
'https://wordpress.org/support/plugin/advanced-database-cleaner/reviews/?filter=5');
|
640 |
echo "</p></div>";
|
641 |
}
|
@@ -788,7 +788,7 @@ class ADBC_Advanced_DB_Cleaner {
|
|
788 |
|
789 |
<span style="float:left;margin-bottom:20px"><?php _e('Important notice to premium users!', 'advanced-database-cleaner'); ?></span>
|
790 |
|
791 |
-
<a style="text-decoration:none;float:right" href="<?php echo $aDBc_new_URI ?>">
|
792 |
<span class="dashicons-dismiss dashicons"></span>
|
793 |
</a>
|
794 |
|
4 |
Plugin Name: Advanced Database Cleaner
|
5 |
Plugin URI: https://sigmaplugin.com/downloads/wordpress-advanced-database-cleaner
|
6 |
Description: Clean database by deleting unused data such as 'old revisions', 'old drafts', 'orphan options', etc. Optimize database and more.
|
7 |
+
Version: 3.1.1
|
8 |
Author: Younes JFR.
|
9 |
Author URI: https://www.sigmaplugin.com
|
10 |
Contributors: symptote
|
30 |
public function __construct() {
|
31 |
|
32 |
// Define constants that should be modified in each version
|
33 |
+
if( ! defined( "ADBC_PLUGIN_VERSION" ) ) define( "ADBC_PLUGIN_VERSION", "3.1.1" );
|
34 |
if( ! defined( "ADBC_PLUGIN_PLAN" ) ) define( "ADBC_PLUGIN_PLAN", "free" );
|
35 |
|
36 |
// Prevent conflicts between free and pro, load text-domain and check if we should update settings after upgrade
|
635 |
$aDBc_new_URI = $_SERVER['REQUEST_URI'];
|
636 |
$aDBc_new_URI = add_query_arg('adbc-ignore-notice', '0', $aDBc_new_URI);
|
637 |
echo '<div class="updated"><p>';
|
638 |
+
printf(__('Awesome! You have been using <a href="admin.php?page=advanced_db_cleaner">Advanced DB Cleaner</a> for more than 1 week. Would you mind taking a few seconds to give it a 5-star rating on WordPress? Thank you in advance :) <a href="%2$s" target="_blank">Ok, you deserved it</a> | <a href="%1$s">I already did</a> | <a href="%1$s">No, not good enough</a>', 'advanced-database-cleaner'), esc_url( $aDBc_new_URI ),
|
639 |
'https://wordpress.org/support/plugin/advanced-database-cleaner/reviews/?filter=5');
|
640 |
echo "</p></div>";
|
641 |
}
|
788 |
|
789 |
<span style="float:left;margin-bottom:20px"><?php _e('Important notice to premium users!', 'advanced-database-cleaner'); ?></span>
|
790 |
|
791 |
+
<a style="text-decoration:none;float:right" href="<?php echo esc_url( $aDBc_new_URI ) ?>">
|
792 |
<span class="dashicons-dismiss dashicons"></span>
|
793 |
</a>
|
794 |
|
includes/class_clean_cron.php
CHANGED
@@ -466,7 +466,7 @@ class ADBC_Tasks_List extends WP_List_Table {
|
|
466 |
|
467 |
<span class="aDBc-premium-tooltip aDBc-category-span">
|
468 |
|
469 |
-
<a href="<?php echo $aDBc_new_URI ?>" class="aDBc-category-counts-links" style="<?php echo $aDBc_link_style ?>">
|
470 |
|
471 |
<span><?php echo $category_info['name']; ?></span>
|
472 |
|
466 |
|
467 |
<span class="aDBc-premium-tooltip aDBc-category-span">
|
468 |
|
469 |
+
<a href="<?php echo esc_url( $aDBc_new_URI ) ?>" class="aDBc-category-counts-links" style="<?php echo $aDBc_link_style ?>">
|
470 |
|
471 |
<span><?php echo $category_info['name']; ?></span>
|
472 |
|
includes/class_clean_options.php
CHANGED
@@ -505,7 +505,7 @@ class ADBC_Options_List extends WP_List_Table {
|
|
505 |
|
506 |
<span class="aDBc-premium-tooltip aDBc-category-span">
|
507 |
|
508 |
-
<a href="<?php echo $aDBc_new_URI ?>" class="aDBc-category-counts-links" style="<?php echo $aDBc_link_style ?>">
|
509 |
|
510 |
<span><?php echo $category_info['name']; ?></span>
|
511 |
|
505 |
|
506 |
<span class="aDBc-premium-tooltip aDBc-category-span">
|
507 |
|
508 |
+
<a href="<?php echo esc_url( $aDBc_new_URI ) ?>" class="aDBc-category-counts-links" style="<?php echo $aDBc_link_style ?>">
|
509 |
|
510 |
<span><?php echo $category_info['name']; ?></span>
|
511 |
|
includes/class_clean_tables.php
CHANGED
@@ -593,7 +593,7 @@ class ADBC_Tables_List extends WP_List_Table {
|
|
593 |
|
594 |
<span class="aDBc-premium-tooltip aDBc-category-span">
|
595 |
|
596 |
-
<a href="<?php echo $aDBc_new_URI ?>" class="aDBc-category-counts-links" style="<?php echo $aDBc_link_style ?>">
|
597 |
|
598 |
<span><?php echo $category_info['name']; ?></span>
|
599 |
|
@@ -689,7 +689,7 @@ class ADBC_Tables_List extends WP_List_Table {
|
|
689 |
|
690 |
?>
|
691 |
<div class="aDBc-text-status-db">
|
692 |
-
<b><a href="<?php echo $aDBc_new_URI; ?>"><?php echo $this->aDBc_total_tables_to_optimize; ?></a></b>
|
693 |
<?php _e( 'table(s) should be optimized!', 'advanced-database-cleaner' ); ?>
|
694 |
</div>
|
695 |
|
@@ -710,7 +710,7 @@ class ADBC_Tables_List extends WP_List_Table {
|
|
710 |
|
711 |
?>
|
712 |
<div class="aDBc-text-status-db <?php echo $to_repair_css; ?>">
|
713 |
-
<b><a href="<?php echo $aDBc_new_URI; ?>"><?php echo $this->aDBc_total_tables_to_repair; ?></a></b>
|
714 |
<?php _e( 'table(s) should be repaired!', 'advanced-database-cleaner' ); ?>
|
715 |
</div>
|
716 |
|
@@ -791,7 +791,7 @@ class ADBC_Tables_List extends WP_List_Table {
|
|
791 |
|
792 |
<span class="aDBc-edit-delete-schedule">
|
793 |
|
794 |
-
<a href="<?php echo $aDBc_new_URI ?>" class="aDBc-edit-schedule-link">
|
795 |
<?php _e( 'Edit', 'advanced-database-cleaner' ); ?>
|
796 |
</a>
|
797 |
|
|
@@ -812,7 +812,7 @@ class ADBC_Tables_List extends WP_List_Table {
|
|
812 |
$aDBc_new_URI = add_query_arg('aDBc_view', 'add_optimize_schedule', $aDBc_new_URI);
|
813 |
?>
|
814 |
|
815 |
-
<a href="<?php echo $aDBc_new_URI ?>" id="aDBc_add_schedule" class="button-primary aDBc-add-new-schedule">
|
816 |
<?php _e('Add new schedule','advanced-database-cleaner'); ?>
|
817 |
</a>
|
818 |
|
593 |
|
594 |
<span class="aDBc-premium-tooltip aDBc-category-span">
|
595 |
|
596 |
+
<a href="<?php echo esc_url( $aDBc_new_URI ); ?>" class="aDBc-category-counts-links" style="<?php echo $aDBc_link_style ?>">
|
597 |
|
598 |
<span><?php echo $category_info['name']; ?></span>
|
599 |
|
689 |
|
690 |
?>
|
691 |
<div class="aDBc-text-status-db">
|
692 |
+
<b><a href="<?php echo esc_url( $aDBc_new_URI ); ?>"><?php echo $this->aDBc_total_tables_to_optimize; ?></a></b>
|
693 |
<?php _e( 'table(s) should be optimized!', 'advanced-database-cleaner' ); ?>
|
694 |
</div>
|
695 |
|
710 |
|
711 |
?>
|
712 |
<div class="aDBc-text-status-db <?php echo $to_repair_css; ?>">
|
713 |
+
<b><a href="<?php echo esc_url( $aDBc_new_URI ); ?>"><?php echo $this->aDBc_total_tables_to_repair; ?></a></b>
|
714 |
<?php _e( 'table(s) should be repaired!', 'advanced-database-cleaner' ); ?>
|
715 |
</div>
|
716 |
|
791 |
|
792 |
<span class="aDBc-edit-delete-schedule">
|
793 |
|
794 |
+
<a href="<?php echo esc_url( $aDBc_new_URI ); ?>" class="aDBc-edit-schedule-link">
|
795 |
<?php _e( 'Edit', 'advanced-database-cleaner' ); ?>
|
796 |
</a>
|
797 |
|
|
812 |
$aDBc_new_URI = add_query_arg('aDBc_view', 'add_optimize_schedule', $aDBc_new_URI);
|
813 |
?>
|
814 |
|
815 |
+
<a href="<?php echo esc_url( $aDBc_new_URI ); ?>" id="aDBc_add_schedule" class="button-primary aDBc-add-new-schedule">
|
816 |
<?php _e('Add new schedule','advanced-database-cleaner'); ?>
|
817 |
</a>
|
818 |
|
includes/class_general_cleanup.php
CHANGED
@@ -116,7 +116,7 @@ class ADBC_Clean_DB_List extends WP_List_Table {
|
|
116 |
$color = "red";
|
117 |
$aDBc_count = "<font color='$color' style='font-weight:bold'>" . $element_info['count'] . "</font>";
|
118 |
$aDBc_new_URI = add_query_arg('aDBc_view', $element_type, $aDBc_new_URI);
|
119 |
-
$aDBc_see = "<a href='$aDBc_new_URI'><img width='20px' alt='view' src='".ADBC_PLUGIN_DIR_PATH . '/images/see.svg'."'/></a>";
|
120 |
}else{
|
121 |
$aDBc_count = "<font color='#ccc' style='font-weight:bold'>0</font>";
|
122 |
$aDBc_see = "<img width='20px' alt='-' src='".ADBC_PLUGIN_DIR_PATH . '/images/nothing_to_see.svg'."'/>";
|
@@ -410,7 +410,7 @@ class ADBC_Clean_DB_List extends WP_List_Table {
|
|
410 |
|
411 |
<span class="aDBc-edit-delete-schedule">
|
412 |
|
413 |
-
<a href="<?php echo $aDBc_new_URI ?>" class="aDBc-edit-schedule-link">
|
414 |
<?php _e( 'Edit', 'advanced-database-cleaner' ); ?>
|
415 |
</a>
|
416 |
|
|
@@ -431,7 +431,7 @@ class ADBC_Clean_DB_List extends WP_List_Table {
|
|
431 |
$aDBc_new_URI = add_query_arg('aDBc_view', 'add_cleanup_schedule', $aDBc_new_URI);
|
432 |
?>
|
433 |
|
434 |
-
<a href="<?php echo $aDBc_new_URI ?>" id="aDBc_add_schedule" class="button-primary aDBc-add-new-schedule">
|
435 |
<?php _e('Add new schedule','advanced-database-cleaner'); ?>
|
436 |
</a>
|
437 |
|
116 |
$color = "red";
|
117 |
$aDBc_count = "<font color='$color' style='font-weight:bold'>" . $element_info['count'] . "</font>";
|
118 |
$aDBc_new_URI = add_query_arg('aDBc_view', $element_type, $aDBc_new_URI);
|
119 |
+
$aDBc_see = "<a href='" . esc_url( $aDBc_new_URI ) . "'><img width='20px' alt='view' src='".ADBC_PLUGIN_DIR_PATH . '/images/see.svg'."'/></a>";
|
120 |
}else{
|
121 |
$aDBc_count = "<font color='#ccc' style='font-weight:bold'>0</font>";
|
122 |
$aDBc_see = "<img width='20px' alt='-' src='".ADBC_PLUGIN_DIR_PATH . '/images/nothing_to_see.svg'."'/>";
|
410 |
|
411 |
<span class="aDBc-edit-delete-schedule">
|
412 |
|
413 |
+
<a href="<?php echo esc_url( $aDBc_new_URI ) ?>" class="aDBc-edit-schedule-link">
|
414 |
<?php _e( 'Edit', 'advanced-database-cleaner' ); ?>
|
415 |
</a>
|
416 |
|
|
431 |
$aDBc_new_URI = add_query_arg('aDBc_view', 'add_cleanup_schedule', $aDBc_new_URI);
|
432 |
?>
|
433 |
|
434 |
+
<a href="<?php echo esc_url( $aDBc_new_URI ) ?>" id="aDBc_add_schedule" class="button-primary aDBc-add-new-schedule">
|
435 |
<?php _e('Add new schedule','advanced-database-cleaner'); ?>
|
436 |
</a>
|
437 |
|
includes/custom-clean-view/header_page_custom_clean.php
CHANGED
@@ -146,7 +146,7 @@
|
|
146 |
?>
|
147 |
|
148 |
<div class="aDBc-delete-custom-filter">
|
149 |
-
<a style="color:red" href="<?php echo $aDBc_new_URI; ?>">
|
150 |
<?php _e( 'Delete custom filter', 'advanced-database-cleaner' ); ?>
|
151 |
</a>
|
152 |
</div>
|
146 |
?>
|
147 |
|
148 |
<div class="aDBc-delete-custom-filter">
|
149 |
+
<a style="color:red" href="<?php echo esc_url( $aDBc_new_URI ); ?>">
|
150 |
<?php _e( 'Delete custom filter', 'advanced-database-cleaner' ); ?>
|
151 |
</a>
|
152 |
</div>
|
includes/header_page_filter.php
CHANGED
@@ -279,7 +279,7 @@
|
|
279 |
?>
|
280 |
|
281 |
<div class="aDBc-delete-custom-filter">
|
282 |
-
<a style="color:red" href="<?php echo $aDBc_new_URI; ?>">
|
283 |
<?php _e( 'Delete custom filter', 'advanced-database-cleaner' ); ?>
|
284 |
</a>
|
285 |
</div>
|
279 |
?>
|
280 |
|
281 |
<div class="aDBc-delete-custom-filter">
|
282 |
+
<a style="color:red" href="<?php echo esc_url( $aDBc_new_URI ); ?>">
|
283 |
<?php _e( 'Delete custom filter', 'advanced-database-cleaner' ); ?>
|
284 |
</a>
|
285 |
</div>
|