Version Description
- Some optimizations and style modifications
Download this release
Release Info
Developer | symptote |
Plugin | Advanced Database Cleaner |
Version | 1.2.2 |
Comparing to | |
See all releases |
Code changes from version 1.2.1 to 1.2.2
- README.txt +4 -1
- advanced-db-cleaner-admin.php +4 -4
- advanced-db-cleaner.php +1 -1
- css/style.css +24 -7
- includes/clean-db.php +1 -1
- includes/optimize-db.php +1 -1
- includes/sidebar.php +3 -3
README.txt
CHANGED
@@ -4,7 +4,7 @@ Donate Link: https://www.paypal.com/us/cgi-bin/webscr?cmd=_flow&SESSION=Azq_P8u-
|
|
4 |
Tags: plugin, plugins, plugin wordpress, wordpress, database cleaner, clean database, database clean, database, clean, cleaner, delete orphan data, orphan data, delete revisions, revision, delete draft, draft, delete trash, trash, delete spam, spam, delete auto drfat, auto draft, delete postmeta, postmeta, delete commentmeta, commentmeta, delete relationships, relationships, delete transient feed, transient feed, optimize database, database optimize, database optimizer, optimize, optimizer, reset database, database reset, reset, admin
|
5 |
Requires at least: 2.7
|
6 |
Tested up to: 4.3
|
7 |
-
Stable tag: 1.2.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -41,6 +41,9 @@ This section describes how to install the plugin and get it working.
|
|
41 |
|
42 |
== Changelog ==
|
43 |
|
|
|
|
|
|
|
44 |
= 1.2.1 =
|
45 |
* Some optimizations and style modifications
|
46 |
* "Clean database" tab shows now only elements that should be cleaned instead of listing all elements.
|
4 |
Tags: plugin, plugins, plugin wordpress, wordpress, database cleaner, clean database, database clean, database, clean, cleaner, delete orphan data, orphan data, delete revisions, revision, delete draft, draft, delete trash, trash, delete spam, spam, delete auto drfat, auto draft, delete postmeta, postmeta, delete commentmeta, commentmeta, delete relationships, relationships, delete transient feed, transient feed, optimize database, database optimize, database optimizer, optimize, optimizer, reset database, database reset, reset, admin
|
5 |
Requires at least: 2.7
|
6 |
Tested up to: 4.3
|
7 |
+
Stable tag: 1.2.2
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
41 |
|
42 |
== Changelog ==
|
43 |
|
44 |
+
= 1.2.2 =
|
45 |
+
* Some optimizations and style modifications
|
46 |
+
|
47 |
= 1.2.1 =
|
48 |
* Some optimizations and style modifications
|
49 |
* "Clean database" tab shows now only elements that should be cleaned instead of listing all elements.
|
advanced-db-cleaner-admin.php
CHANGED
@@ -44,13 +44,13 @@ function adv_db_cleaner_page(){
|
|
44 |
echo '<div id="adbc_message" class="'. $adv_db_cleaner_message_class .'"><p><strong>' . $adv_db_cleaner_message . '</strong></p></div>';
|
45 |
}
|
46 |
?>
|
47 |
-
<div
|
48 |
<div class="tabBox">
|
49 |
<?php
|
50 |
$aDBc_tab_list = array(
|
51 |
-
array("id"=>"aDBc-clean","title"=>
|
52 |
-
array("id"=>"aDBc-optimize","title"=>
|
53 |
-
array("id"=>"aDBc-reset","title"=>
|
54 |
);
|
55 |
foreach ($aDBc_tab_list as $key => $value){
|
56 |
$checked = "";
|
44 |
echo '<div id="adbc_message" class="'. $adv_db_cleaner_message_class .'"><p><strong>' . $adv_db_cleaner_message . '</strong></p></div>';
|
45 |
}
|
46 |
?>
|
47 |
+
<div class="marginRight300">
|
48 |
<div class="tabBox">
|
49 |
<?php
|
50 |
$aDBc_tab_list = array(
|
51 |
+
array("id"=>"aDBc-clean", "title"=>__('Clean Database', 'advanced-db-cleaner')),
|
52 |
+
array("id"=>"aDBc-optimize", "title"=>__('Optimize Database', 'advanced-db-cleaner')),
|
53 |
+
array("id"=>"aDBc-reset", "title"=>__('Reset Database', 'advanced-db-cleaner'))
|
54 |
);
|
55 |
foreach ($aDBc_tab_list as $key => $value){
|
56 |
$checked = "";
|
advanced-db-cleaner.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
/*
|
3 |
Plugin Name: Advanced Database Cleaner
|
4 |
Description: Clean up your database by deleting unused data such as 'draft', Optimize your database or reset it to its initial state.
|
5 |
-
Version: 1.2.
|
6 |
Author: Younes JFR.
|
7 |
Contributors: symptote
|
8 |
Text Domain: advanced-db-cleaner
|
2 |
/*
|
3 |
Plugin Name: Advanced Database Cleaner
|
4 |
Description: Clean up your database by deleting unused data such as 'draft', Optimize your database or reset it to its initial state.
|
5 |
+
Version: 1.2.2
|
6 |
Author: Younes JFR.
|
7 |
Contributors: symptote
|
8 |
Text Domain: advanced-db-cleaner
|
css/style.css
CHANGED
@@ -1,16 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
.tabBox {
|
2 |
border-radius: 4px;
|
3 |
margin: 10px 0 40px 0;
|
4 |
float: left;
|
5 |
width: 100%;
|
6 |
}
|
7 |
-
|
8 |
.tabBox > input[type="radio"] {
|
9 |
position: absolute;
|
10 |
left:-100px;
|
11 |
top:-100px;
|
12 |
}
|
13 |
-
|
14 |
.tabBox > input[type="radio"] + label {
|
15 |
display: inline-block;
|
16 |
border: 1px solid #DEDBD1;
|
@@ -23,7 +35,6 @@
|
|
23 |
color: #111;
|
24 |
font-size: 13px;
|
25 |
}
|
26 |
-
|
27 |
.tabBox > input[type="radio"]:checked + label {
|
28 |
background-color:white;
|
29 |
font-weight: bold;
|
@@ -31,7 +42,6 @@
|
|
31 |
color: #0073aa;
|
32 |
border-top: 1px solid #1A9AC9;
|
33 |
}
|
34 |
-
|
35 |
.tabBox > div {
|
36 |
display: none;
|
37 |
border: 1px solid #DEDBD1;
|
@@ -40,23 +50,29 @@
|
|
40 |
height: auto;
|
41 |
overflow: auto;
|
42 |
margin-top: -1px;
|
43 |
-
|
44 |
border-radius: 0 5px 5px 5px;
|
45 |
-moz-border-radius: 0 5px 5px 5px;
|
46 |
-webkit-border-radius: 0 5px 5px 5px;
|
47 |
}
|
48 |
-
|
49 |
#aDBc-clean:checked ~ .tab1, #aDBc-optimize:checked ~ .tab2, #aDBc-reset:checked ~ .tab3{
|
50 |
display: block;
|
51 |
min-height: 400px;
|
52 |
}
|
53 |
|
54 |
-
/*
|
|
|
|
|
|
|
|
|
|
|
55 |
.aDBcCount {
|
56 |
text-align: right !important;
|
57 |
color: #666 !important;
|
58 |
}
|
59 |
|
|
|
|
|
|
|
60 |
/* Style for check box */
|
61 |
input[type=checkbox] {
|
62 |
visibility: hidden;
|
@@ -161,6 +177,7 @@ input[type=checkbox] {
|
|
161 |
width:300px;
|
162 |
font-size: 12px;
|
163 |
text-align:justify;
|
|
|
164 |
}
|
165 |
|
166 |
/* For Data already cleaned */
|
1 |
+
/* ---------------------*/
|
2 |
+
/* --- Global styles ---*/
|
3 |
+
/* ---------------------*/
|
4 |
+
.marginRight300 {
|
5 |
+
margin-right: 300px;
|
6 |
+
}
|
7 |
+
|
8 |
+
.marginTop20 {
|
9 |
+
margin-top: 20px;
|
10 |
+
}
|
11 |
+
|
12 |
+
/* ---------------------*/
|
13 |
+
/* ----- Tabs style ----*/
|
14 |
+
/* ---------------------*/
|
15 |
.tabBox {
|
16 |
border-radius: 4px;
|
17 |
margin: 10px 0 40px 0;
|
18 |
float: left;
|
19 |
width: 100%;
|
20 |
}
|
|
|
21 |
.tabBox > input[type="radio"] {
|
22 |
position: absolute;
|
23 |
left:-100px;
|
24 |
top:-100px;
|
25 |
}
|
|
|
26 |
.tabBox > input[type="radio"] + label {
|
27 |
display: inline-block;
|
28 |
border: 1px solid #DEDBD1;
|
35 |
color: #111;
|
36 |
font-size: 13px;
|
37 |
}
|
|
|
38 |
.tabBox > input[type="radio"]:checked + label {
|
39 |
background-color:white;
|
40 |
font-weight: bold;
|
42 |
color: #0073aa;
|
43 |
border-top: 1px solid #1A9AC9;
|
44 |
}
|
|
|
45 |
.tabBox > div {
|
46 |
display: none;
|
47 |
border: 1px solid #DEDBD1;
|
50 |
height: auto;
|
51 |
overflow: auto;
|
52 |
margin-top: -1px;
|
|
|
53 |
border-radius: 0 5px 5px 5px;
|
54 |
-moz-border-radius: 0 5px 5px 5px;
|
55 |
-webkit-border-radius: 0 5px 5px 5px;
|
56 |
}
|
|
|
57 |
#aDBc-clean:checked ~ .tab1, #aDBc-optimize:checked ~ .tab2, #aDBc-reset:checked ~ .tab3{
|
58 |
display: block;
|
59 |
min-height: 400px;
|
60 |
}
|
61 |
|
62 |
+
/* ---------------------------------*/
|
63 |
+
/* ----- "Clean DB" tabs styles ----*/
|
64 |
+
/* ---------------------------------*/
|
65 |
+
|
66 |
+
|
67 |
+
/* Style for count numbers */
|
68 |
.aDBcCount {
|
69 |
text-align: right !important;
|
70 |
color: #666 !important;
|
71 |
}
|
72 |
|
73 |
+
|
74 |
+
|
75 |
+
|
76 |
/* Style for check box */
|
77 |
input[type=checkbox] {
|
78 |
visibility: hidden;
|
177 |
width:300px;
|
178 |
font-size: 12px;
|
179 |
text-align:justify;
|
180 |
+
color: #888;
|
181 |
}
|
182 |
|
183 |
/* For Data already cleaned */
|
includes/clean-db.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
/* Get the totals of unused data */
|
3 |
$aDBc_count_unused = adv_db_cleaner_count();
|
4 |
?>
|
5 |
-
<div
|
6 |
<div style="float: left; margin-right:30px; margin-bottom:40px">
|
7 |
<form action="" method="post">
|
8 |
<table class="widefat" style="width: 400px; border: 0px; box-shadow: 0 1px 0px #ccc;">
|
2 |
/* Get the totals of unused data */
|
3 |
$aDBc_count_unused = adv_db_cleaner_count();
|
4 |
?>
|
5 |
+
<div class="marginTop20">
|
6 |
<div style="float: left; margin-right:30px; margin-bottom:40px">
|
7 |
<form action="" method="post">
|
8 |
<table class="widefat" style="width: 400px; border: 0px; box-shadow: 0 1px 0px #ccc;">
|
includes/optimize-db.php
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
<div
|
2 |
<div style="float: left; margin-right:30px; margin-bottom:40px">
|
3 |
<form action="" method="post">
|
4 |
<table class="widefat" style="width: 400px; border: 0px; box-shadow: 0 1px 0px #ccc;">
|
1 |
+
<div class="marginTop20">
|
2 |
<div style="float: left; margin-right:30px; margin-bottom:40px">
|
3 |
<form action="" method="post">
|
4 |
<table class="widefat" style="width: 400px; border: 0px; box-shadow: 0 1px 0px #ccc;">
|
includes/sidebar.php
CHANGED
@@ -2,8 +2,8 @@
|
|
2 |
<center><h2>Advanced Database Cleaner</h2></center>
|
3 |
<!--<p>See what is new in <a href="#">version 4.3.9</a></p>-->
|
4 |
|
5 |
-
<p style="text-align: justify"
|
6 |
-
<p style="text-align:right"
|
7 |
<center>
|
8 |
<!-- Donate -->
|
9 |
<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top">
|
@@ -21,5 +21,5 @@
|
|
21 |
|
22 |
</div>
|
23 |
<div style="background: #1A9AC9; border-top: 1px solid #ccc; text-align: center; color: #fff">
|
24 |
-
© <?php echo date("Y")
|
25 |
</div>
|
2 |
<center><h2>Advanced Database Cleaner</h2></center>
|
3 |
<!--<p>See what is new in <a href="#">version 4.3.9</a></p>-->
|
4 |
|
5 |
+
<p style="text-align: justify"><?php _e('If you love this plugin and would like to make a donation, then you\'re awesome.', 'advanced-db-cleaner'); ?></p>
|
6 |
+
<p style="text-align:right"><?php _e('Thank you!', 'advanced-db-cleaner'); ?></p>
|
7 |
<center>
|
8 |
<!-- Donate -->
|
9 |
<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top">
|
21 |
|
22 |
</div>
|
23 |
<div style="background: #1A9AC9; border-top: 1px solid #ccc; text-align: center; color: #fff">
|
24 |
+
© <?php echo date("Y") . " " . __('Created by', 'advanced-db-cleaner') . " <b>Younes JFR</b>"; ?>
|
25 |
</div>
|