Version Description
(2021/02/13) = * Add: Suppport for video tags (also used by the Gutenberg block). * Fix: WebP should be checked even though the content is not being checked. * Fix: Avoid scan to stop if a warning is sent by the server when using Live Scan.
Download this release
Release Info
Developer | TigrouMeow |
Plugin | Media Cleaner |
Version | 6.1.5 |
Comparing to | |
See all releases |
Code changes from version 6.1.4 to 6.1.5
- classes/core.php +9 -1
- common/classes/ratings.php +1 -1
- media-cleaner.php +2 -2
- readme.txt +3 -2
classes/core.php
CHANGED
@@ -271,7 +271,7 @@ class Meow_WPMC_Core {
|
|
271 |
}
|
272 |
|
273 |
|
274 |
-
// Images
|
275 |
$imgs = $dom->getElementsByTagName( 'img' );
|
276 |
foreach ( $imgs as $img ) {
|
277 |
//error_log($img->getAttribute('src'));
|
@@ -289,6 +289,14 @@ class Meow_WPMC_Core {
|
|
289 |
}
|
290 |
}
|
291 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
292 |
// Links, href
|
293 |
$urls = $dom->getElementsByTagName( 'a' );
|
294 |
foreach ( $urls as $url ) {
|
271 |
}
|
272 |
|
273 |
|
274 |
+
// Images: src, srcset
|
275 |
$imgs = $dom->getElementsByTagName( 'img' );
|
276 |
foreach ( $imgs as $img ) {
|
277 |
//error_log($img->getAttribute('src'));
|
289 |
}
|
290 |
}
|
291 |
|
292 |
+
// Videos: src
|
293 |
+
$videos = $dom->getElementsByTagName( 'video' );
|
294 |
+
foreach ( $videos as $video ) {
|
295 |
+
//error_log($video->getAttribute('src'));
|
296 |
+
$src = $this->clean_url( $video->getAttribute('src') );
|
297 |
+
array_push( $results, $src );
|
298 |
+
}
|
299 |
+
|
300 |
// Links, href
|
301 |
$urls = $dom->getElementsByTagName( 'a' );
|
302 |
foreach ( $urls as $url ) {
|
common/classes/ratings.php
CHANGED
@@ -101,7 +101,7 @@ if ( !class_exists( 'MeowCommon_Classes_Ratings' ) ) {
|
|
101 |
$info = pathinfo( $file );
|
102 |
if ( !empty( $info ) ) {
|
103 |
if ( $info['filename'] == 'wplr-sync' ) {
|
104 |
-
return "
|
105 |
}
|
106 |
$info['filename'] = str_replace( '-', ' ', $info['filename'] );
|
107 |
$file = ucwords( $info['filename'] );
|
101 |
$info = pathinfo( $file );
|
102 |
if ( !empty( $info ) ) {
|
103 |
if ( $info['filename'] == 'wplr-sync' ) {
|
104 |
+
return "Photo Engine";
|
105 |
}
|
106 |
$info['filename'] = str_replace( '-', ' ', $info['filename'] );
|
107 |
$file = ucwords( $info['filename'] );
|
media-cleaner.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Media Cleaner
|
4 |
Plugin URI: https://meowapps.com
|
5 |
Description: Clean your WordPress from unused or broken media entries and files.
|
6 |
-
Version: 6.1.
|
7 |
Author: Jordy Meow
|
8 |
Author URI: https://meowapps.com
|
9 |
Text Domain: media-cleaner
|
@@ -13,7 +13,7 @@ Originally developed for two of my websites:
|
|
13 |
- Haikyo (https://haikyo.org)
|
14 |
*/
|
15 |
|
16 |
-
define( 'WPMC_VERSION', '6.1.
|
17 |
define( 'WPMC_PREFIX', 'wpmc' );
|
18 |
define( 'WPMC_DOMAIN', 'media-cleaner' );
|
19 |
define( 'WPMC_ENTRY', __FILE__ );
|
3 |
Plugin Name: Media Cleaner
|
4 |
Plugin URI: https://meowapps.com
|
5 |
Description: Clean your WordPress from unused or broken media entries and files.
|
6 |
+
Version: 6.1.5
|
7 |
Author: Jordy Meow
|
8 |
Author URI: https://meowapps.com
|
9 |
Text Domain: media-cleaner
|
13 |
- Haikyo (https://haikyo.org)
|
14 |
*/
|
15 |
|
16 |
+
define( 'WPMC_VERSION', '6.1.5' );
|
17 |
define( 'WPMC_PREFIX', 'wpmc' );
|
18 |
define( 'WPMC_DOMAIN', 'media-cleaner' );
|
19 |
define( 'WPMC_ENTRY', __FILE__ );
|
readme.txt
CHANGED
@@ -5,7 +5,7 @@ Donate link: https://commerce.coinbase.com/checkout/d047546a-77a8-41c8-9ea9-4a95
|
|
5 |
Requires at least: 5.0
|
6 |
Tested up to: 5.6
|
7 |
Requires PHP: 5.6
|
8 |
-
Stable tag: 6.1.
|
9 |
|
10 |
Clean your WordPress Website from unused or broken media entries and files.
|
11 |
|
@@ -75,7 +75,8 @@ Better to be safe than sorry. This plugin deletes files! Therefore, backup is no
|
|
75 |
|
76 |
== Changelog ==
|
77 |
|
78 |
-
= 6.1.
|
|
|
79 |
* Fix: WebP should be checked even though the content is not being checked.
|
80 |
* Fix: Avoid scan to stop if a warning is sent by the server when using Live Scan.
|
81 |
|
5 |
Requires at least: 5.0
|
6 |
Tested up to: 5.6
|
7 |
Requires PHP: 5.6
|
8 |
+
Stable tag: 6.1.5
|
9 |
|
10 |
Clean your WordPress Website from unused or broken media entries and files.
|
11 |
|
75 |
|
76 |
== Changelog ==
|
77 |
|
78 |
+
= 6.1.5 (2021/02/13) =
|
79 |
+
* Add: Suppport for video tags (also used by the Gutenberg block).
|
80 |
* Fix: WebP should be checked even though the content is not being checked.
|
81 |
* Fix: Avoid scan to stop if a warning is sent by the server when using Live Scan.
|
82 |
|