Version Description
- Fix: Make sure the HTML is UTF8 encoded before analyzing it.
- Update: Removed affiliate links to BlogVault in the Readme as it seems to be against the WordPress guidelines.
Download this release
Release Info
Developer | TigrouMeow |
Plugin | Media Cleaner |
Version | 5.4.1 |
Comparing to | |
See all releases |
Code changes from version 5.4.0 to 5.4.1
- common/admin.php +45 -31
- core.php +4 -0
- media-cleaner.php +2 -2
- readme.txt +7 -3
common/admin.php
CHANGED
@@ -29,22 +29,25 @@ if ( !class_exists( 'MeowApps_Admin' ) ) {
|
|
29 |
$this->prefix = $prefix;
|
30 |
$this->mainfile = $mainfile;
|
31 |
$this->domain = $domain;
|
|
|
32 |
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
|
|
|
|
44 |
}
|
45 |
}
|
46 |
}
|
47 |
-
|
48 |
add_filter( 'edd_sl_api_request_verify_ssl', array( $this, 'request_verify_ssl' ), 10, 0 );
|
49 |
}
|
50 |
|
@@ -348,30 +351,41 @@ if ( !class_exists( 'MeowApps_Admin' ) ) {
|
|
348 |
|
349 |
<h2 style="margin-bottom: 0px; margin-top: 25px;">Featured Plugins</h2>
|
350 |
<div class="meow-row meow-featured-plugins">
|
351 |
-
<div class="meow-box meow-col meow-span_1_of_2 ">
|
352 |
-
<ul class="">
|
353 |
-
<li><img src='<?= $this->common_url( 'img/wplr-sync.jpg' ) ?>' /><b>WP/LR Sync</b>
|
354 |
-
<?php echo $this->check_install( 'wplr-sync' ) ?><br />
|
355 |
-
Synchronize photos (folders, collections, keywords) from Lightroom to WordPress.</li>
|
356 |
-
<li><img src='<?= $this->common_url( 'img/meow-lightbox.jpg' ) ?>' /><b>Meow Lightbox</b>
|
357 |
-
<?php echo $this->check_install( 'meow-lightbox' ) ?><br />
|
358 |
-
Light but powerful lightbox that can also display photo information (EXIF).</li>
|
359 |
-
<li><img src='<?= $this->common_url( 'img/meow-gallery.jpg' ) ?>' /><b>Meow Gallery</b>
|
360 |
-
<?php echo $this->check_install( 'meow-gallery' ) ?><br />
|
361 |
-
Gallery (using the built-in WP gallery) that makes your website look better.</li>
|
362 |
-
</ul>
|
363 |
-
</div>
|
364 |
<div class="meow-box meow-col meow-span_1_of_2">
|
365 |
<ul class="">
|
366 |
-
<li><img src='<?= $this->common_url( 'img/media-
|
367 |
-
|
368 |
-
For nicer filenames and better SEO.</li>
|
369 |
-
<li><img src='<?= $this->common_url( 'img/media-cleaner.jpg' ) ?>' /><b>Media Cleaner</b>
|
370 |
<?php echo $this->check_install( 'media-cleaner' ) ?><br />
|
371 |
Detect the files which are not in use.</li>
|
372 |
-
<li><img src='<?= $this->common_url( 'img/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
373 |
<?php echo $this->check_install( 'wp-retina-2x' ) ?><br />
|
374 |
-
The famous plugin that adds Retina support.</li
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
375 |
</ul>
|
376 |
</div>
|
377 |
</div>
|
29 |
$this->prefix = $prefix;
|
30 |
$this->mainfile = $mainfile;
|
31 |
$this->domain = $domain;
|
32 |
+
$this->is_theme = ( strpos( $this->mainfile, '-theme' ) !== false );
|
33 |
|
34 |
+
// If there is no mainfile, it's either a Pro only Plugin (with no Free version available) or a Theme.
|
35 |
+
if ( !$this->is_theme ) {
|
36 |
+
register_activation_hook( $mainfile, array( $this, 'show_meowapps_create_rating_date' ) );
|
37 |
+
if ( is_admin() ) {
|
38 |
+
$license = get_option( $this->prefix . '_license', "" );
|
39 |
+
if ( ( !empty( $license ) ) && !file_exists( plugin_dir_path( $this->mainfile ) . 'common/meowapps/admin.php' ) ) {
|
40 |
+
add_action( 'admin_notices', array( $this, 'admin_notices_licensed_free' ) );
|
41 |
+
}
|
42 |
+
if ( !$disableReview ) {
|
43 |
+
$rating_date = $this->create_rating_date();
|
44 |
+
if ( time() > $rating_date ) {
|
45 |
+
add_action( 'admin_notices', array( $this, 'admin_notices_rating' ) );
|
46 |
+
}
|
47 |
}
|
48 |
}
|
49 |
}
|
50 |
+
|
51 |
add_filter( 'edd_sl_api_request_verify_ssl', array( $this, 'request_verify_ssl' ), 10, 0 );
|
52 |
}
|
53 |
|
351 |
|
352 |
<h2 style="margin-bottom: 0px; margin-top: 25px;">Featured Plugins</h2>
|
353 |
<div class="meow-row meow-featured-plugins">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
354 |
<div class="meow-box meow-col meow-span_1_of_2">
|
355 |
<ul class="">
|
356 |
+
<li><img src='<?= $this->common_url( 'img/media-cleaner.jpg' ) ?>' />
|
357 |
+
<a href='https://meowapps.com/plugin/media-cleaner/'><b>Media Cleaner</b></a>
|
|
|
|
|
358 |
<?php echo $this->check_install( 'media-cleaner' ) ?><br />
|
359 |
Detect the files which are not in use.</li>
|
360 |
+
<li><img src='<?= $this->common_url( 'img/media-file-renamer.jpg' ) ?>' />
|
361 |
+
<a href='https://meowapps.com/plugin/media-file-renamer/'><b>Media File Renamer</b></a>
|
362 |
+
<?php echo $this->check_install( 'media-file-renamer' ) ?><br />
|
363 |
+
For nicer filenames and a better SEO.</li>
|
364 |
+
<li><img src='<?= $this->common_url( 'img/default.png' ) ?>' />
|
365 |
+
<a href='https://meowapps.com/plugin/contact-form-block/'><b>Contact Form Block</b></a>
|
366 |
+
<?php echo $this->check_install( 'contact-form-block' ) ?><br />
|
367 |
+
A simpler, nicer, prettier contact form.</li>
|
368 |
+
<!--li><img src='<?= $this->common_url( 'img/wp-retina-2x.jpg' ) ?>' />
|
369 |
+
<a href='https://meowapps.com/plugin/wp-retina-2x/'><b>WP Retina 2x</b></a>
|
370 |
<?php echo $this->check_install( 'wp-retina-2x' ) ?><br />
|
371 |
+
The famous plugin that adds Retina support.</li-->
|
372 |
+
|
373 |
+
</ul>
|
374 |
+
</div>
|
375 |
+
<div class="meow-box meow-col meow-span_1_of_2 ">
|
376 |
+
<ul class="">
|
377 |
+
<li><img src='<?= $this->common_url( 'img/meow-gallery.jpg' ) ?>' />
|
378 |
+
<a href='https://meowapps.com/plugin/meow-gallery/'><b>Meow Gallery</b></a>
|
379 |
+
<?php echo $this->check_install( 'meow-gallery' ) ?><br />
|
380 |
+
Beautiful but lightweight gallery with many layouts. The only one that allows you to uninstall it without losing anything.</li>
|
381 |
+
<li><img src='<?= $this->common_url( 'img/meow-lightbox.jpg' ) ?>' />
|
382 |
+
<a href='https://meowapps.com/plugin/meow-lightbox/'><b>Meow Lightbox</b></a>
|
383 |
+
<?php echo $this->check_install( 'meow-lightbox' ) ?><br />
|
384 |
+
Pretty and ultra-optimized Lightbox which can also display your EXIF data. You will love it.</li>
|
385 |
+
<li><img src='<?= $this->common_url( 'img/wplr-sync.jpg' ) ?>' />
|
386 |
+
<a href='https://meowapps.com/plugin/wplr-sync/'><b>WP/LR Sync</b></a>
|
387 |
+
<?php echo $this->check_install( 'wplr-sync' ) ?><br />
|
388 |
+
Synchronize your Lightroom to your WordPress. This plugin is loved by all the photographers using Lightroom and WordPress.</li>
|
389 |
</ul>
|
390 |
</div>
|
391 |
</div>
|
core.php
CHANGED
@@ -148,6 +148,10 @@ class Meow_WPMC_Core {
|
|
148 |
if ( empty( $html ) )
|
149 |
return array();
|
150 |
|
|
|
|
|
|
|
|
|
151 |
// Resolve src-set and shortcodes
|
152 |
$html = do_shortcode( $html );
|
153 |
$html = wp_make_content_images_responsive( $html );
|
148 |
if ( empty( $html ) )
|
149 |
return array();
|
150 |
|
151 |
+
// Proposal/fix by @copytrans
|
152 |
+
// Discussion: https://wordpress.org/support/topic/bug-in-core-php/#post-11647775
|
153 |
+
$html = mb_convert_encoding( $html, 'HTML-ENTITIES', 'UTF-8' );
|
154 |
+
|
155 |
// Resolve src-set and shortcodes
|
156 |
$html = do_shortcode( $html );
|
157 |
$html = wp_make_content_images_responsive( $html );
|
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.4.
|
7 |
Author: Jordy Meow
|
8 |
Author URI: https://meowapps.com
|
9 |
Text Domain: media-cleaner
|
@@ -25,7 +25,7 @@ if ( is_admin() ) {
|
|
25 |
|
26 |
global $wpmc_version;
|
27 |
global $wpmc;
|
28 |
-
$wpmc_version = '5.4.
|
29 |
|
30 |
require __DIR__ . '/admin.php';
|
31 |
require __DIR__ . '/core.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.4.1
|
7 |
Author: Jordy Meow
|
8 |
Author URI: https://meowapps.com
|
9 |
Text Domain: media-cleaner
|
25 |
|
26 |
global $wpmc_version;
|
27 |
global $wpmc;
|
28 |
+
$wpmc_version = '5.4.1';
|
29 |
|
30 |
require __DIR__ . '/admin.php';
|
31 |
require __DIR__ . '/core.php';
|
readme.txt
CHANGED
@@ -5,7 +5,7 @@ Donate link: https://commerce.coinbase.com/checkout/d047546a-77a8-41c8-9ea9-4a95
|
|
5 |
Requires at least: 4.8
|
6 |
Tested up to: 5.2
|
7 |
Requires PHP: 7.0
|
8 |
-
Stable tag: 5.4.
|
9 |
|
10 |
Clean your WordPress from unused or broken media and files. It has its own trash system and recovery features. Please read the description.
|
11 |
|
@@ -13,13 +13,13 @@ Clean your WordPress from unused or broken media and files. It has its own trash
|
|
13 |
|
14 |
Media Cleaner cleans your Media Library from the media entries (and files) which aren't used in your website, as well as broken entries. An internal trash allows you to make sure everything works properly before deleting the media entries (and files) permanently. It uses a smart analysis powered by many implementations for specific plugins and themes.
|
15 |
|
16 |
-
**Before using this plugin, make sure you have a proper backup of your install. This step is not optional; it is required. You cannot trust any tools modifying or deleting your files
|
17 |
|
18 |
For compatibility, Pro version and important information, please read this until the end. Last but not least, it is necessary to read the [tutorial](https://meowapps.com/media-cleaner-tutorial/). It is available on the official website, here: [Media Cleaner](https://meowapps.com/media-cleaner).
|
19 |
|
20 |
=== IMPORTANT ===
|
21 |
|
22 |
-
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. 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.
|
23 |
|
24 |
=== DASHBOARD ===
|
25 |
|
@@ -71,6 +71,10 @@ Last but not least, and... again: this plugin deletes files. Be careful! Backup
|
|
71 |
|
72 |
== Changelog ==
|
73 |
|
|
|
|
|
|
|
|
|
74 |
= 5.4.0 =
|
75 |
* Add: Support for Uber, Easy Real Estate.
|
76 |
* Update: Admin CSS and texts.
|
5 |
Requires at least: 4.8
|
6 |
Tested up to: 5.2
|
7 |
Requires PHP: 7.0
|
8 |
+
Stable tag: 5.4.1
|
9 |
|
10 |
Clean your WordPress from unused or broken media and files. It has its own trash system and recovery features. Please read the description.
|
11 |
|
13 |
|
14 |
Media Cleaner cleans your Media Library from the media entries (and files) which aren't used in your website, as well as broken entries. An internal trash allows you to make sure everything works properly before deleting the media entries (and files) permanently. It uses a smart analysis powered by many implementations for specific plugins and themes.
|
15 |
|
16 |
+
**Before using this plugin, make sure you have a proper backup of your install. This step is not optional; it is required. You cannot trust any tools modifying or deleting your files.**
|
17 |
|
18 |
For compatibility, Pro version and important information, please read this until the end. Last but not least, it is necessary to read the [tutorial](https://meowapps.com/media-cleaner-tutorial/). It is available on the official website, here: [Media Cleaner](https://meowapps.com/media-cleaner).
|
19 |
|
20 |
=== IMPORTANT ===
|
21 |
|
22 |
+
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. 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. And don't forget to make a backup of your website.
|
23 |
|
24 |
=== DASHBOARD ===
|
25 |
|
71 |
|
72 |
== Changelog ==
|
73 |
|
74 |
+
= 5.4.1 =
|
75 |
+
* Fix: Make sure the HTML is UTF8 encoded before analyzing it.
|
76 |
+
* Update: Removed affiliate links to BlogVault in the Readme as it seems to be against the WordPress guidelines.
|
77 |
+
|
78 |
= 5.4.0 =
|
79 |
* Add: Support for Uber, Easy Real Estate.
|
80 |
* Update: Admin CSS and texts.
|