Version Description
- Update: Remove UpdraftPlus.
- Update: Slight code cleaning.
- Update: Checkboxes are updated dynamically.
- Info: Media Cleaner is better than ever by going through so many improvements and optimizations this year. The plugin has also been perfectly stable for a few weeks, so I have decided to change its version number. Please help this plugin survive by giving me a nice review, here: https://wordpress.org/support/plugin/meow-lightbox/reviews/?rate=5#new-post. Thank you :)
Download this release
Release Info
Developer | TigrouMeow |
Plugin | Media Cleaner |
Version | 5.0.1 |
Comparing to | |
See all releases |
Code changes from version 5.0.0 to 5.0.1
- common/admin.php +1 -7
- media-cleaner.php +2 -2
- readme.txt +4 -3
- views/menu-screen.php +1 -2
common/admin.php
CHANGED
@@ -19,7 +19,6 @@ if ( !class_exists( 'MeowApps_Admin' ) ) {
|
|
19 |
add_action( 'admin_menu', array( $this, 'admin_menu_start' ) );
|
20 |
add_action( 'admin_enqueue_scripts', array( $this, 'admin_enqueue_scripts' ) );
|
21 |
add_action( 'plugins_loaded', array( $this, 'plugins_loaded' ) );
|
22 |
-
add_filter( 'updraftplus_com_link', array( $this, 'updraftplus_com_link' ) );
|
23 |
}
|
24 |
MeowApps_Admin::$loaded = true;
|
25 |
}
|
@@ -45,11 +44,6 @@ if ( !class_exists( 'MeowApps_Admin' ) ) {
|
|
45 |
}
|
46 |
}
|
47 |
|
48 |
-
function updraftplus_com_link( $url ) {
|
49 |
-
$url = $url . "?afref=460";
|
50 |
-
return $url;
|
51 |
-
}
|
52 |
-
|
53 |
function show_meowapps_create_rating_date() {
|
54 |
delete_option( 'meowapps_hide_meowapps' );
|
55 |
$this->create_rating_date();
|
@@ -400,7 +394,7 @@ if ( !class_exists( 'MeowApps_Admin' ) ) {
|
|
400 |
</div>
|
401 |
</div>
|
402 |
|
403 |
-
|
404 |
<?php
|
405 |
|
406 |
}
|
19 |
add_action( 'admin_menu', array( $this, 'admin_menu_start' ) );
|
20 |
add_action( 'admin_enqueue_scripts', array( $this, 'admin_enqueue_scripts' ) );
|
21 |
add_action( 'plugins_loaded', array( $this, 'plugins_loaded' ) );
|
|
|
22 |
}
|
23 |
MeowApps_Admin::$loaded = true;
|
24 |
}
|
44 |
}
|
45 |
}
|
46 |
|
|
|
|
|
|
|
|
|
|
|
47 |
function show_meowapps_create_rating_date() {
|
48 |
delete_option( 'meowapps_hide_meowapps' );
|
49 |
$this->create_rating_date();
|
394 |
</div>
|
395 |
</div>
|
396 |
|
397 |
+
|
398 |
<?php
|
399 |
|
400 |
}
|
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: 5.0.
|
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 = '5.0.
|
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: 5.0.1
|
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 = '5.0.1';
|
28 |
|
29 |
// Admin
|
30 |
require __DIR__ . '/admin.php';
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: TigrouMeow, amekusa
|
|
3 |
Tags: clean, delete, file, files, images, image, media, library, upload, clean, acf
|
4 |
Requires at least: 4.8
|
5 |
Tested up to: 4.9.8
|
6 |
-
Stable tag: 5.0.
|
7 |
|
8 |
Clean your WordPress (broken media, unused media, files). It has its own trash and recovery features. Please read the description.
|
9 |
|
@@ -13,7 +13,7 @@ Clean your Media Library from the media which aren't used in any of your posts,
|
|
13 |
|
14 |
A tutorial is available on the official website, here: [Media Cleaner](https://meowapps.com/media-cleaner).
|
15 |
|
16 |
-
**This tool is a knife. Do not use it if you don't have any backup, or if you don't know what it does. For backup,
|
17 |
|
18 |
**SPECIAL PLUGIN**. Such a plugin is difficult to create and to maintain. If you understand WordPress, you probably know why. This plugin does its best to help you. Learn how to use it and you will get awesome results.
|
19 |
|
@@ -42,7 +42,8 @@ The official FAQ is [here](https://meowapps.com/media-cleaner/faq/).
|
|
42 |
|
43 |
== Changelog ==
|
44 |
|
45 |
-
= 5.0.
|
|
|
46 |
* Update: Slight code cleaning.
|
47 |
* Update: Checkboxes are updated dynamically.
|
48 |
* Info: Media Cleaner is better than ever by going through so many improvements and optimizations this year. The plugin has also been perfectly stable for a few weeks, so I have decided to change its version number. Please help this plugin survive by giving me a nice review, here: https://wordpress.org/support/plugin/meow-lightbox/reviews/?rate=5#new-post. Thank you :)
|
3 |
Tags: clean, delete, file, files, images, image, media, library, upload, clean, acf
|
4 |
Requires at least: 4.8
|
5 |
Tested up to: 4.9.8
|
6 |
+
Stable tag: 5.0.1
|
7 |
|
8 |
Clean your WordPress (broken media, unused media, files). It has its own trash and recovery features. Please read the description.
|
9 |
|
13 |
|
14 |
A tutorial is available on the official website, here: [Media Cleaner](https://meowapps.com/media-cleaner).
|
15 |
|
16 |
+
**This tool is a knife. Do not use it if you don't have any backup, or if you don't know what it does. For backup, I recommend use the excellent service called [BlogVault](https://blogvault.net?src=DB4A9C).**
|
17 |
|
18 |
**SPECIAL PLUGIN**. Such a plugin is difficult to create and to maintain. If you understand WordPress, you probably know why. This plugin does its best to help you. Learn how to use it and you will get awesome results.
|
19 |
|
42 |
|
43 |
== Changelog ==
|
44 |
|
45 |
+
= 5.0.1 =
|
46 |
+
* Update: Remove UpdraftPlus.
|
47 |
* Update: Slight code cleaning.
|
48 |
* Update: Checkboxes are updated dynamically.
|
49 |
* Info: Media Cleaner is better than ever by going through so many improvements and optimizations this year. The plugin has also been perfectly stable for a few weeks, so I have decided to change its version number. Please help this plugin survive by giving me a nice review, here: https://wordpress.org/support/plugin/meow-lightbox/reviews/?rate=5#new-post. Thank you :)
|
views/menu-screen.php
CHANGED
@@ -141,7 +141,7 @@
|
|
141 |
$hide_warning = get_option( 'wpmc_hide_warning', false );
|
142 |
|
143 |
if ( !$hide_warning ) {
|
144 |
-
_e( "<div class='notice notice-warning'><p><b style='color: red;'>Important.</b> <b>Backup your DB and your /uploads directory before using Media Cleaner. </b> The deleted files will be temporarily moved to the <b>uploads/wpmc-trash</b> directory. After testing your website, you can check the <a href='?page=media-cleaner&s&view=deleted'>trash</a> to either empty it or recover the media and files. The Media Cleaner does its best to be safe to use. However, WordPress being a very dynamic and pluggable system, it is impossible to predict all the situations in which your files are used. <b style='color: red;'>Again, please backup!</b> If you don't know how, give a try to this: <a href='https://
|
145 |
}
|
146 |
|
147 |
if ( !MEDIA_TRASH ) {
|
@@ -332,4 +332,3 @@
|
|
332 |
<h3><!-- The content will be inserted by JS --></h3>
|
333 |
<p>Please check your logs.<br>Do you want to <a href="#" class="retry">try again</a>, or <a href="#" class="skip">skip this entry</a>?</p>
|
334 |
</div>
|
335 |
-
|
141 |
$hide_warning = get_option( 'wpmc_hide_warning', false );
|
142 |
|
143 |
if ( !$hide_warning ) {
|
144 |
+
_e( "<div class='notice notice-warning'><p><b style='color: red;'>Important.</b> <b>Backup your DB and your /uploads directory before using Media Cleaner. </b> The deleted files will be temporarily moved to the <b>uploads/wpmc-trash</b> directory. After testing your website, you can check the <a href='?page=media-cleaner&s&view=deleted'>trash</a> to either empty it or recover the media and files. The Media Cleaner does its best to be safe to use. However, WordPress being a very dynamic and pluggable system, it is impossible to predict all the situations in which your files are used. <b style='color: red;'>Again, please backup!</b> If you don't know how, give a try to this: <a href='https://blogvault.net?src=DB4A9C' target='_blank'>BlogVault</a>. <br /><br /><b style='color: red;'>Be thoughtful.</b> Don't blame Media Cleaner if it deleted too many or not enough of your files. It makes cleaning possible and this task is only possible this way; don't post a bad review because it broke your install. <b>If you have a proper backup, there is no risk</b>. Sorry for the lengthy message, but better be safe than sorry. You can disable this big warning in the options if you have a Pro license. Make sure you read this warning twice. Media Cleaner is awesome and always getting better so I hope you will enjoy it. Thank you :)</p></div>", 'media-cleaner' );
|
145 |
}
|
146 |
|
147 |
if ( !MEDIA_TRASH ) {
|
332 |
<h3><!-- The content will be inserted by JS --></h3>
|
333 |
<p>Please check your logs.<br>Do you want to <a href="#" class="retry">try again</a>, or <a href="#" class="skip">skip this entry</a>?</p>
|
334 |
</div>
|
|