Delete Duplicate Posts - Version 4.6.1

Version Description

  • 2020/01/12
  • Hotfix - "The plugin generated 15 characters of unexpected output during activation" - Thanks Fabio.
Download this release

Release Info

Developer lkoudal
Plugin Icon 128x128 Delete Duplicate Posts
Version 4.6.1
Comparing to
See all releases

Code changes from version 4.6 to 4.6.1

Files changed (2) hide show
  1. delete-duplicate-posts.php +10 -7
  2. readme.txt +6 -1
delete-duplicate-posts.php CHANGED
@@ -5,7 +5,7 @@ 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.6
9
  Author: cleverplugins.com
10
  Author URI: https://cleverplugins.com
11
  Min WP Version: 4.7
@@ -57,7 +57,7 @@ if ( function_exists( 'ddp_fs' ) ) {
57
  'anonymous_mode' => $is_anonymous,
58
  'menu' => array(
59
  'slug' => 'delete-duplicate-posts.php',
60
- 'first-path' => 'admin.php?page=delete-duplicate-posts.php',
61
  'support' => false,
62
  'affiliation' => false,
63
  'parent' => array(
@@ -80,6 +80,11 @@ if ( function_exists( 'ddp_fs' ) ) {
80
  ddp_fs()->add_action( 'after_uninstall', 'ddp_fs_uninstall_cleanup' );
81
  /**
82
  * Cleans up when uninstalling
 
 
 
 
 
83
  */
84
  function ddp_fs_uninstall_cleanup()
85
  {
@@ -850,7 +855,7 @@ if ( !class_exists( 'Delete_Duplicate_Posts' ) ) {
850
  $table_name = $wpdb->prefix . 'ddp_log';
851
 
852
  if ( $table_name !== $wpdb->get_var( "show tables like '{$table_name}'" ) ) {
853
- $sql = "CREATE TABLE {$table_name} (\n\t\t\t\t\t\t\t\t\t\t\t\t\tid bigint(20) NOT NULL AUTO_INCREMENT,\n\t\t\t\t\t\t\t\t\t\t\t\t\tdatime timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP,\n\t\t\t\t\t\t\t\t\t\t\t\t\tnote tinytext NOT NULL,\n\t\t\t\t\t\t\t\t\t\t\t\t\tPRIMARY KEY (id)\n\t\t\t\t\t\t\t\t\t\t\t\t);";
854
  require_once ABSPATH . 'wp-admin/includes/upgrade.php';
855
  dbDelta( $sql );
856
  }
@@ -941,7 +946,7 @@ if ( !class_exists( 'Delete_Duplicate_Posts' ) ) {
941
 
942
  public static function filter_plugin_actions( $links, $file )
943
  {
944
- $settings_link = '<a href="tools.php?page=delete-duplicate-posts.php">' . __( 'Settings', 'delete-duplicate-posts' ) . '</a>';
945
  array_unshift( $links, $settings_link );
946
  // before other links
947
  return $links;
@@ -1604,6 +1609,4 @@ if ( !class_exists( 'Delete_Duplicate_Posts' ) ) {
1604
 
1605
  if ( class_exists( 'Delete_Duplicate_Posts' ) ) {
1606
  $delete_duplicate_posts_var = new Delete_Duplicate_Posts();
1607
- }
1608
- ?>
1609
-
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.6.1
9
  Author: cleverplugins.com
10
  Author URI: https://cleverplugins.com
11
  Min WP Version: 4.7
57
  'anonymous_mode' => $is_anonymous,
58
  'menu' => array(
59
  'slug' => 'delete-duplicate-posts.php',
60
+ 'first-path' => 'tools.php?page=delete-duplicate-posts',
61
  'support' => false,
62
  'affiliation' => false,
63
  'parent' => array(
80
  ddp_fs()->add_action( 'after_uninstall', 'ddp_fs_uninstall_cleanup' );
81
  /**
82
  * Cleans up when uninstalling
83
+ *
84
+ * @author Lars Koudal
85
+ * @since v0.0.1
86
+ * @version v1.0.0 Tuesday, January 12th, 2021.
87
+ * @return void
88
  */
89
  function ddp_fs_uninstall_cleanup()
90
  {
855
  $table_name = $wpdb->prefix . 'ddp_log';
856
 
857
  if ( $table_name !== $wpdb->get_var( "show tables like '{$table_name}'" ) ) {
858
+ $sql = "CREATE TABLE {$table_name} (id bigint(20) NOT NULL AUTO_INCREMENT,datime timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP, note tinytext NOT NULL, PRIMARY KEY (id));";
859
  require_once ABSPATH . 'wp-admin/includes/upgrade.php';
860
  dbDelta( $sql );
861
  }
946
 
947
  public static function filter_plugin_actions( $links, $file )
948
  {
949
+ $settings_link = '<a href="tools.php?page=delete-duplicate-posts">' . __( 'Settings', 'delete-duplicate-posts' ) . '</a>';
950
  array_unshift( $links, $settings_link );
951
  // before other links
952
  return $links;
1609
 
1610
  if ( class_exists( 'Delete_Duplicate_Posts' ) ) {
1611
  $delete_duplicate_posts_var = new Delete_Duplicate_Posts();
1612
+ }
 
 
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.6
9
- Stable tag: 4.6
10
  Requires PHP: 5.6
11
 
12
  Get rid of duplicate posts and pages on your blog!
@@ -49,6 +49,11 @@ You should restore the backup you took of your website before you ran this tool.
49
 
50
  == Changelog ==
51
 
 
 
 
 
 
52
  = 4.6 =
53
  * 2020/01/12
54
  * Beta feature: Limit amount of duplicates to find. On big sites with many duplicates the plugin can time out. This feature allows you to limit the amount of results. This feature is only available for free while being tested. Thank you Fabio.
6
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
7
  Requires at least: 4.7
8
  Tested up to: 5.6
9
+ Stable tag: 4.6.1
10
  Requires PHP: 5.6
11
 
12
  Get rid of duplicate posts and pages on your blog!
49
 
50
  == Changelog ==
51
 
52
+ = 4.6.1 =
53
+ * 2020/01/12
54
+ * Hotfix - "The plugin generated 15 characters of unexpected output during activation" - Thanks Fabio.
55
+
56
+
57
  = 4.6 =
58
  * 2020/01/12
59
  * Beta feature: Limit amount of duplicates to find. On big sites with many duplicates the plugin can time out. This feature allows you to limit the amount of results. This feature is only available for free while being tested. Thank you Fabio.