Media Cleaner - Version 4.6.3

Version Description

  • Add: Added an option to only scan the thumbnails and ignore the base files.
  • Add: ACF Repeater support.
  • Update: Improved the code and the performance. Scan is now done differently, using the DB.
  • Fix: Debug logs weren't logging (and enhanced them a bit).
  • Notice: That's a big release :) Please help me by giving me a nice review, here: https://wordpress.org/support/plugin/meow-lightbox/reviews/?rate=5#new-post.
Download this release

Release Info

Developer TigrouMeow
Plugin Icon 128x128 Media Cleaner
Version 4.6.3
Comparing to
See all releases

Code changes from version 4.6.2 to 4.6.3

Files changed (3) hide show
  1. core.php +3 -2
  2. media-cleaner.php +2 -2
  3. readme.txt +2 -2
core.php CHANGED
@@ -1587,13 +1587,14 @@ function wpmc_install() {
1587
  dbDelta( $sql );
1588
  $table_name = $wpdb->prefix . "mclean_refs";
1589
  $charset_collate = $wpdb->get_charset_collate();
 
 
1590
  $sql = "CREATE TABLE $table_name (
1591
  id BIGINT(20) NOT NULL AUTO_INCREMENT,
1592
  mediaId BIGINT(20) NULL,
1593
  mediaUrl VARCHAR(256) NULL,
1594
  originType VARCHAR(32) NOT NULL,
1595
- PRIMARY KEY (id),
1596
- KEY mediaLookUp (mediaId, mediaUrl)
1597
  ) " . $charset_collate . ";";
1598
  require_once(ABSPATH . 'wp-admin/includes/upgrade.php');
1599
  dbDelta( $sql );
1587
  dbDelta( $sql );
1588
  $table_name = $wpdb->prefix . "mclean_refs";
1589
  $charset_collate = $wpdb->get_charset_collate();
1590
+ // This key doesn't work on too many installs because of the 'Specified key was too long' issue
1591
+ // KEY mediaLookUp (mediaId, mediaUrl)
1592
  $sql = "CREATE TABLE $table_name (
1593
  id BIGINT(20) NOT NULL AUTO_INCREMENT,
1594
  mediaId BIGINT(20) NULL,
1595
  mediaUrl VARCHAR(256) NULL,
1596
  originType VARCHAR(32) NOT NULL,
1597
+ PRIMARY KEY (id)
 
1598
  ) " . $charset_collate . ";";
1599
  require_once(ABSPATH . 'wp-admin/includes/upgrade.php');
1600
  dbDelta( $sql );
media-cleaner.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Media Cleaner
4
  Plugin URI: https://meowapps.com
5
  Description: Clean your Media Library, many options, trash system.
6
- Version: 4.6.2
7
  Author: Jordy Meow
8
  Author URI: https://meowapps.com
9
  Text Domain: media-cleaner
@@ -24,7 +24,7 @@ if ( class_exists( 'Meow_WPMC_Core' ) ) {
24
  if ( is_admin() ) {
25
 
26
  global $wpmc_version;
27
- $wpmc_version = '4.6.2';
28
 
29
  // Admin
30
  require __DIR__ . '/admin.php';
3
  Plugin Name: Media Cleaner
4
  Plugin URI: https://meowapps.com
5
  Description: Clean your Media Library, many options, trash system.
6
+ Version: 4.6.3
7
  Author: Jordy Meow
8
  Author URI: https://meowapps.com
9
  Text Domain: media-cleaner
24
  if ( is_admin() ) {
25
 
26
  global $wpmc_version;
27
+ $wpmc_version = '4.6.3';
28
 
29
  // Admin
30
  require __DIR__ . '/admin.php';
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: TigrouMeow
3
  Tags: clean, delete, file, files, images, image, media, library, upload, clean, acf
4
  Requires at least: 4.2
5
  Tested up to: 4.9.4
6
- Stable tag: 4.6.2
7
 
8
  Clean your WordPress (broken media, unused media, files). It has its own trash and recovery features. Please read the description.
9
 
@@ -42,7 +42,7 @@ The official FAQ is [here](https://meowapps.com/wplr-sync/faq/).
42
 
43
  == Changelog ==
44
 
45
- = 4.6.2 =
46
  * Add: Added an option to only scan the thumbnails and ignore the base files.
47
  * Add: ACF Repeater support.
48
  * Update: Improved the code and the performance. Scan is now done differently, using the DB.
3
  Tags: clean, delete, file, files, images, image, media, library, upload, clean, acf
4
  Requires at least: 4.2
5
  Tested up to: 4.9.4
6
+ Stable tag: 4.6.3
7
 
8
  Clean your WordPress (broken media, unused media, files). It has its own trash and recovery features. Please read the description.
9
 
42
 
43
  == Changelog ==
44
 
45
+ = 4.6.3 =
46
  * Add: Added an option to only scan the thumbnails and ignore the base files.
47
  * Add: ACF Repeater support.
48
  * Update: Improved the code and the performance. Scan is now done differently, using the DB.