Version Description
- 2021/10/15
- Fix problem with deleting old log entries in database.
Download this release
Release Info
Developer | lkoudal |
Plugin | Delete Duplicate Posts |
Version | 4.7.3 |
Comparing to | |
See all releases |
Code changes from version 4.7.2 to 4.7.3
- delete-duplicate-posts.php +8 -8
- readme.txt +5 -1
delete-duplicate-posts.php
CHANGED
@@ -5,11 +5,11 @@ Plugin Name: Delete Duplicate Posts
|
|
5 |
Plugin Script: delete-duplicate-posts.php
|
6 |
Plugin URI: https://cleverplugins.com
|
7 |
Description: Remove duplicate blogposts on your blog! Searches and removes duplicate posts and their post meta tags. You can delete posts, pages and other Custom Post Types enabled on your website.
|
8 |
-
Version: 4.7.
|
9 |
Author: cleverplugins.com
|
10 |
Author URI: https://cleverplugins.com
|
11 |
Min WP Version: 4.7
|
12 |
-
Max WP Version: 5.8.
|
13 |
Text Domain: delete-duplicate-posts
|
14 |
Domain Path: /languages
|
15 |
*/
|
@@ -919,13 +919,13 @@ if ( !class_exists( 'Delete_Duplicate_Posts' ) ) {
|
|
919 |
'note' => $text,
|
920 |
), array( '%s', '%s' ) );
|
921 |
// When over 1000 entries, strip down to 500.
|
922 |
-
$total = (int) $wpdb->get_var( "SELECT COUNT(*) FROM
|
923 |
// phpcs:ignore WordPress.DB.PreparedSQL.InterpolatedNotPrepared
|
924 |
|
925 |
-
if ( $total >
|
926 |
-
$targettime = $wpdb->get_var( "SELECT `datime` from
|
927 |
// phpcs:ignore WordPress.DB.PreparedSQL.InterpolatedNotPrepared
|
928 |
-
$wpdb->query( $wpdb->prepare(
|
929 |
}
|
930 |
|
931 |
}
|
@@ -1372,12 +1372,12 @@ if ( !class_exists( 'Delete_Duplicate_Posts' ) ) {
|
|
1372 |
?>" value="<?php
|
1373 |
echo esc_html( $pt ) ;
|
1374 |
?>"
|
1375 |
-
|
1376 |
if ( false !== $checked ) {
|
1377 |
echo ' checked' ;
|
1378 |
}
|
1379 |
?>
|
1380 |
-
|
1381 |
<label for="ddp_pt-<?php
|
1382 |
echo esc_attr( $step ) ;
|
1383 |
?>"><?php
|
5 |
Plugin Script: delete-duplicate-posts.php
|
6 |
Plugin URI: https://cleverplugins.com
|
7 |
Description: Remove duplicate blogposts on your blog! Searches and removes duplicate posts and their post meta tags. You can delete posts, pages and other Custom Post Types enabled on your website.
|
8 |
+
Version: 4.7.3
|
9 |
Author: cleverplugins.com
|
10 |
Author URI: https://cleverplugins.com
|
11 |
Min WP Version: 4.7
|
12 |
+
Max WP Version: 5.8.2
|
13 |
Text Domain: delete-duplicate-posts
|
14 |
Domain Path: /languages
|
15 |
*/
|
919 |
'note' => $text,
|
920 |
), array( '%s', '%s' ) );
|
921 |
// When over 1000 entries, strip down to 500.
|
922 |
+
$total = (int) $wpdb->get_var( "SELECT COUNT(*) FROM {$wpdb->prefix}ddp_log;" );
|
923 |
// phpcs:ignore WordPress.DB.PreparedSQL.InterpolatedNotPrepared
|
924 |
|
925 |
+
if ( $total > 1 ) {
|
926 |
+
$targettime = $wpdb->get_var( "SELECT `datime` from {$wpdb->prefix}ddp_log order by `datime` DESC limit 500,1;" );
|
927 |
// phpcs:ignore WordPress.DB.PreparedSQL.InterpolatedNotPrepared
|
928 |
+
$wpdb->query( $wpdb->prepare( "DELETE from {$wpdb->prefix}ddp_log where `datime` < %s", $targettime ) );
|
929 |
}
|
930 |
|
931 |
}
|
1372 |
?>" value="<?php
|
1373 |
echo esc_html( $pt ) ;
|
1374 |
?>"
|
1375 |
+
<?php
|
1376 |
if ( false !== $checked ) {
|
1377 |
echo ' checked' ;
|
1378 |
}
|
1379 |
?>
|
1380 |
+
/>
|
1381 |
<label for="ddp_pt-<?php
|
1382 |
echo esc_attr( $step ) ;
|
1383 |
?>"><?php
|
readme.txt
CHANGED
@@ -6,7 +6,7 @@ License: GPLv2 or later
|
|
6 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
7 |
Requires at least: 4.7
|
8 |
Tested up to: 5.8.1
|
9 |
-
Stable tag: 4.7.
|
10 |
Requires PHP: 5.6
|
11 |
|
12 |
Get rid of duplicate posts and pages on your blog!
|
@@ -49,6 +49,10 @@ You should restore the backup you took of your website before you ran this tool.
|
|
49 |
|
50 |
== Changelog ==
|
51 |
|
|
|
|
|
|
|
|
|
52 |
= 4.7.2 =
|
53 |
* 2021/09/30
|
54 |
* Fix problem with log database not being created automatically.
|
6 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
7 |
Requires at least: 4.7
|
8 |
Tested up to: 5.8.1
|
9 |
+
Stable tag: 4.7.3
|
10 |
Requires PHP: 5.6
|
11 |
|
12 |
Get rid of duplicate posts and pages on your blog!
|
49 |
|
50 |
== Changelog ==
|
51 |
|
52 |
+
= 4.7.3 =
|
53 |
+
* 2021/10/15
|
54 |
+
* Fix problem with deleting old log entries in database.
|
55 |
+
|
56 |
= 4.7.2 =
|
57 |
* 2021/09/30
|
58 |
* Fix problem with log database not being created automatically.
|