Version Description
- Update: General admin style update.
Download this release
Release Info
Developer | TigrouMeow |
Plugin | Media Cleaner |
Version | 5.1.1 |
Comparing to | |
See all releases |
Code changes from version 5.1.0 to 5.1.1
- common/admin.css +1 -1
- common/admin.php +7 -5
- media-cleaner.php +2 -2
- readme.txt +20 -11
- ui.php +5 -2
common/admin.css
CHANGED
@@ -134,7 +134,7 @@
|
|
134 |
padding: 10px 10px;
|
135 |
}
|
136 |
|
137 |
-
.meow-box p.submit {
|
138 |
text-align: right;
|
139 |
margin: 10px -10px -10px -10px;
|
140 |
padding: 7px 10px 10px 0px !important;
|
134 |
padding: 10px 10px;
|
135 |
}
|
136 |
|
137 |
+
.meow-box p.submit, .meow-box div.submit {
|
138 |
text-align: right;
|
139 |
margin: 10px -10px -10px -10px;
|
140 |
padding: 7px 10px 10px 0px !important;
|
common/admin.php
CHANGED
@@ -4,8 +4,10 @@ if ( !class_exists( 'MeowApps_Admin' ) ) {
|
|
4 |
|
5 |
class MeowApps_Admin {
|
6 |
|
|
|
|
|
7 |
public static $loaded = false;
|
8 |
-
public static $admin_version = "1.
|
9 |
|
10 |
public $prefix; // prefix used for actions, filters (mfrh)
|
11 |
public $mainfile; // plugin main file (media-file-renamer.php)
|
@@ -151,8 +153,8 @@ if ( !class_exists( 'MeowApps_Admin' ) ) {
|
|
151 |
}
|
152 |
?>
|
153 |
<h1 style="line-height: 16px;">
|
154 |
-
<img width="
|
155 |
-
src="<?php echo
|
156 |
<span style="font-size: 12px"><?php echo $author; ?></span>
|
157 |
</h1>
|
158 |
<div style="clear: both;"></div>
|
@@ -174,8 +176,8 @@ if ( !class_exists( 'MeowApps_Admin' ) ) {
|
|
174 |
// Creates standard menu if it does NOT exist
|
175 |
global $submenu;
|
176 |
if ( !isset( $submenu[ 'meowapps-main-menu' ] ) ) {
|
177 |
-
add_menu_page( 'Meow Apps', 'Meow Apps', 'manage_options', 'meowapps-main-menu',
|
178 |
-
array( $this, 'admin_meow_apps' ), '
|
179 |
add_submenu_page( 'meowapps-main-menu', __( 'Dashboard', 'meowapps' ),
|
180 |
__( 'Dashboard', 'meowapps' ), 'manage_options',
|
181 |
'meowapps-main-menu', array( $this, 'admin_meow_apps' ) );
|
4 |
|
5 |
class MeowApps_Admin {
|
6 |
|
7 |
+
public static $logo = 'data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxIiB2aWV3Qm94PSIwIDAgMTY1IDE2NSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8c3R5bGU+CiAgICAuc3Qye2ZpbGw6IzgwNDYyNX0uc3Qze2ZpbGw6I2ZkYTk2MH0KICA8L3N0eWxlPgogIDxwYXRoIGQ9Ik03MiA3YTc2IDc2IDAgMCAxIDg0IDkxQTc1IDc1IDAgMSAxIDcyIDd6IiBmaWxsPSIjNGE2YjhjIi8+CiAgPHBhdGggZD0iTTQ4IDQ4YzIgNSAyIDEwIDUgMTQgNSA4IDEzIDE3IDIyIDIwbDEtMTBjMS0yIDMtMyA1LTNoMTNjMiAwIDQgMSA1IDNsMyA5IDQtMTBjMi0zIDYtMiA5LTJoMTFjMyAyIDMgNSAzIDhsMiAzN2MwIDMtMSA3LTQgOGgtMTJjLTIgMC0zLTItNS00LTEgMS0yIDMtNCAzLTUgMS05IDEtMTMtMS0zIDItNSAyLTkgMnMtOSAxLTEwLTNjLTItNC0xLTggMC0xMi04LTMtMTUtNy0yMi0xMi03LTctMTUtMTQtMjAtMjMtMy00LTUtOC01LTEzIDEtNCAzLTEwIDYtMTMgNC0zIDEyLTIgMTUgMnoiIGZpbGw9IiMxMDEwMTAiLz4KICA8cGF0aCBjbGFzcz0ic3QyIiBkPSJNNDMgNTFsNCAxMS02IDVoLTZjLTMtNS0zLTExIDAtMTYgMi0yIDYtMyA4IDB6Ii8+CiAgPHBhdGggY2xhc3M9InN0MyIgZD0iTTQ3IDYybDMgNmMwIDMgMCA0LTIgNnMtNCAyLTcgMmwtNi05aDZsNi01eiIvPgogIDxwYXRoIGNsYXNzPSJzdDIiIGQ9Ik01MCA2OGw4IDljLTMgMy01IDYtOSA4bC04LTljMyAwIDUgMCA3LTJzMy0zIDItNnoiLz4KICA8cGF0aCBkPSJNODIgNzRoMTJsNSAxOCAzIDExIDgtMjloMTNsMiA0MmgtOGwtMS0yLTEtMzEtMTAgMzItNyAxLTktMzMtMSAyOS0xIDRoLThsMy00MnoiIGZpbGw9IiNmZmYiLz4KICA8cGF0aCBjbGFzcz0ic3QzIiBkPSJNNTggNzdsNSA1Yy0xIDQtMiA4LTcgOGwtNy01YzQtMiA2LTUgOS04eiIvPgogIDxwYXRoIGNsYXNzPSJzdDIiIGQ9Ik02MyA4Mmw5IDUtNiA5LTEwLTZjNSAwIDYtNCA3LTh6Ii8+CiAgPHBhdGggY2xhc3M9InN0MyIgZD0iTTcyIDg3bDMgMS0xIDExLTgtMyA2LTEweiIvPgo8L3N2Zz4K';
|
8 |
+
|
9 |
public static $loaded = false;
|
10 |
+
public static $admin_version = "1.8";
|
11 |
|
12 |
public $prefix; // prefix used for actions, filters (mfrh)
|
13 |
public $mainfile; // plugin main file (media-file-renamer.php)
|
153 |
}
|
154 |
?>
|
155 |
<h1 style="line-height: 16px;">
|
156 |
+
<img width="42" style="margin-right: 10px; float: left; position: relative; top: -5px;"
|
157 |
+
src="<?php echo MeowApps_Admin::$logo ?>"><?php echo $title; ?><br />
|
158 |
<span style="font-size: 12px"><?php echo $author; ?></span>
|
159 |
</h1>
|
160 |
<div style="clear: both;"></div>
|
176 |
// Creates standard menu if it does NOT exist
|
177 |
global $submenu;
|
178 |
if ( !isset( $submenu[ 'meowapps-main-menu' ] ) ) {
|
179 |
+
add_menu_page( 'Meow Apps', '<img style="width: 24px; margin-left: -30px; position: absolute; margin-top: -3px;" src="' . MeowApps_Admin::$logo . '" />Meow Apps', 'manage_options', 'meowapps-main-menu',
|
180 |
+
array( $this, 'admin_meow_apps' ), '', 82 );
|
181 |
add_submenu_page( 'meowapps-main-menu', __( 'Dashboard', 'meowapps' ),
|
182 |
__( 'Dashboard', 'meowapps' ), 'manage_options',
|
183 |
'meowapps-main-menu', array( $this, 'admin_meow_apps' ) );
|
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.1.
|
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.1.
|
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.1.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.1.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: 5.0
|
6 |
-
Stable tag: 5.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,24 +13,30 @@ 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 |
-
|
17 |
|
18 |
-
|
19 |
|
20 |
-
|
|
|
21 |
|
22 |
-
|
|
|
23 |
|
24 |
-
|
|
|
25 |
|
26 |
-
|
|
|
27 |
|
28 |
== Installation ==
|
29 |
|
30 |
-
1. Upload `media-file-cleaner` to the `/wp-content/plugins/` directory
|
31 |
-
2. Activate the plugin through the 'Plugins' menu in WordPress
|
32 |
-
3.
|
33 |
-
|
|
|
|
|
34 |
|
35 |
== Frequently Asked Questions ==
|
36 |
|
@@ -42,6 +48,9 @@ The official FAQ is [here](https://meowapps.com/media-cleaner/faq/).
|
|
42 |
|
43 |
== Changelog ==
|
44 |
|
|
|
|
|
|
|
45 |
= 5.1.0 =
|
46 |
* Add: Filters for Filesystem scan. Please have a look at the tutorial (https://meowapps.com/media-cleaner-tutorial/), there is now a section about those filters.
|
47 |
* Fix: Query for metakey.
|
3 |
Tags: clean, delete, file, files, images, image, media, library, upload, clean, acf
|
4 |
Requires at least: 4.8
|
5 |
Tested up to: 5.0
|
6 |
+
Stable tag: 5.1.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 |
+
=== IMPORTANT ===
|
17 |
|
18 |
+
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://meow.click/blogvault). 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 |
|
20 |
+
=== DASHBOARD ===
|
21 |
+
The files detected as not used will be listed in a specific dashboard. At this point, it will be up to you to delete them. They will be then moved to a trash internal to the plugin. After more testing, you can trash them permanently.
|
22 |
|
23 |
+
=== COMPATIBILITY ===
|
24 |
+
I am adding support for specific plugins little by little. Currently, I have been working with ACF, Gutenberg, Divi, Fusion Builder (Avada), WooCommerce, Visual Composer (WPBakery), Elementor, and Beaver Builder. **Specific checks for Page Builders are being added to the Pro version** (as it requires meticulous work and updates).
|
25 |
|
26 |
+
=== PRO ===
|
27 |
+
[Media Cleaner Pro](https://meowapps.com/media-cleaner) can scan your physical /uploads directory, and match it against the Media Library. It also has extra support for Page Builders.
|
28 |
|
29 |
+
=== AGAIN, BE CAREFUL ===
|
30 |
+
Again, this plugin deletes files so be careful! Backup is not only important, it is **necessary**. Don't use this plugin if you don't understand how WordPress works.
|
31 |
|
32 |
== Installation ==
|
33 |
|
34 |
+
1. Upload `media-file-cleaner` to the `/wp-content/plugins/` directory.
|
35 |
+
2. Activate the plugin through the 'Plugins' menu in WordPress.
|
36 |
+
3. Please have a look at the [tutorial](https://meowapps.com/media-cleaner-tutorial/).
|
37 |
+
4. Prepare a backup.
|
38 |
+
5. Go in Meow Apps -> Media Cleaner and check the appropriate options.
|
39 |
+
6. Go in Media -> Media Cleaner.
|
40 |
|
41 |
== Frequently Asked Questions ==
|
42 |
|
48 |
|
49 |
== Changelog ==
|
50 |
|
51 |
+
= 5.1.1 =
|
52 |
+
* Update: General admin style update.
|
53 |
+
|
54 |
= 5.1.0 =
|
55 |
* Add: Filters for Filesystem scan. Please have a look at the tutorial (https://meowapps.com/media-cleaner-tutorial/), there is now a section about those filters.
|
56 |
* Fix: Query for metakey.
|
ui.php
CHANGED
@@ -60,12 +60,15 @@ class Meow_WPMC_UI {
|
|
60 |
wp_enqueue_style( 'media-cleaner-css', plugins_url( '/media-cleaner.css', __FILE__ ) );
|
61 |
|
62 |
$screen = get_current_screen();
|
|
|
63 |
switch ( $screen->id ) {
|
64 |
case 'media_page_media-cleaner': // Media > Cleaner
|
65 |
-
wp_enqueue_script( 'media-cleaner', plugins_url( '/media-cleaner.js', __FILE__ ), array( 'jquery', 'jquery-ui-dialog' ),
|
|
|
66 |
break;
|
67 |
case 'meow-apps_page_wpmc_settings-menu': // Meow Apps > Media Cleaner (Settings)
|
68 |
-
wp_enqueue_script( 'media-cleaner-settings', plugins_url( '/settings.js', __FILE__ ), array( 'jquery' ),
|
|
|
69 |
break;
|
70 |
}
|
71 |
}
|
60 |
wp_enqueue_style( 'media-cleaner-css', plugins_url( '/media-cleaner.css', __FILE__ ) );
|
61 |
|
62 |
$screen = get_current_screen();
|
63 |
+
global $wpmc_version;
|
64 |
switch ( $screen->id ) {
|
65 |
case 'media_page_media-cleaner': // Media > Cleaner
|
66 |
+
wp_enqueue_script( 'media-cleaner', plugins_url( '/media-cleaner.js', __FILE__ ), array( 'jquery', 'jquery-ui-dialog' ),
|
67 |
+
$wpmc_version, true );
|
68 |
break;
|
69 |
case 'meow-apps_page_wpmc_settings-menu': // Meow Apps > Media Cleaner (Settings)
|
70 |
+
wp_enqueue_script( 'media-cleaner-settings', plugins_url( '/settings.js', __FILE__ ), array( 'jquery' ),
|
71 |
+
$wpmc_version, true );
|
72 |
break;
|
73 |
}
|
74 |
}
|