Media Cleaner - Version 5.4.2

Version Description

  • Add: Support for Yoast SEO and its Facebook Image.
  • Add: Support for Elementor and Oxygen Builder.
  • Add: Support for ACF File Field.
  • Update: Better support for WP CLI.
  • 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 Icon 128x128 Media Cleaner
Version 5.4.2
Comparing to
See all releases

Code changes from version 5.4.1 to 5.4.2

Files changed (5) hide show
  1. core.php +1 -0
  2. parsers.php +3 -0
  3. readme.txt +6 -2
  4. ui.php +2 -0
  5. views/menu-screen.php +6 -0
core.php CHANGED
@@ -212,6 +212,7 @@ class Meow_WPMC_Core {
212
  // Images, src, srcset
213
  $imgs = $dom->getElementsByTagName( 'img' );
214
  foreach ( $imgs as $img ) {
 
215
  $src = $this->clean_url( $img->getAttribute('src') );
216
  array_push( $results, $src );
217
  $srcset = $img->getAttribute('srcset');
212
  // Images, src, srcset
213
  $imgs = $dom->getElementsByTagName( 'img' );
214
  foreach ( $imgs as $img ) {
215
+ //error_log($img->getAttribute('src'));
216
  $src = $this->clean_url( $img->getAttribute('src') );
217
  array_push( $results, $src );
218
  $srcset = $img->getAttribute('srcset');
parsers.php CHANGED
@@ -21,6 +21,9 @@ class MeowApps_WPMC_Parsers {
21
 
22
  if ( class_exists( 'Mega_Menu' ) )
23
  require_once( 'parsers/maxmegamenu.php' );
 
 
 
24
  }
25
  }
26
 
21
 
22
  if ( class_exists( 'Mega_Menu' ) )
23
  require_once( 'parsers/maxmegamenu.php' );
24
+
25
+ if ( class_exists( 'WPSEO_Options' ) )
26
+ require_once( 'parsers/wpseo.php' );
27
  }
28
  }
29
 
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.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
 
@@ -71,7 +71,11 @@ Last but not least, and... again: this plugin deletes files. Be careful! Backup
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
 
5
  Requires at least: 4.8
6
  Tested up to: 5.2
7
  Requires PHP: 7.0
8
+ Stable tag: 5.4.2
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
 
71
 
72
  == Changelog ==
73
 
74
+ = 5.4.2 =
75
+ * Add: Support for Yoast SEO and its Facebook Image.
76
+ * Add: Support for Elementor and Oxygen Builder.
77
+ * Add: Support for ACF File Field.
78
+ * Update: Better support for WP CLI.
79
  * Fix: Make sure the HTML is UTF8 encoded before analyzing it.
80
  * Update: Removed affiliate links to BlogVault in the Readme as it seems to be against the WordPress guidelines.
81
 
ui.php CHANGED
@@ -10,6 +10,8 @@ class Meow_WPMC_UI {
10
  "CONTENT (URL)" => "Found in content (as an URL).",
11
  "THEME" => "Found in theme.",
12
  "PAGE BUILDER" => "Found in Page Builder.",
 
 
13
  "GALLERY" => "Found in gallery.",
14
  "META" => "Found in meta.",
15
  "META (ID)" => "Found in meta (as an ID).",
10
  "CONTENT (URL)" => "Found in content (as an URL).",
11
  "THEME" => "Found in theme.",
12
  "PAGE BUILDER" => "Found in Page Builder.",
13
+ "PAGE BUILDER (ID)" => "Found in Page Builder (as an ID).",
14
+ "PAGE BUILDER (URL)" => "Found in Page Builder (as an URL).",
15
  "GALLERY" => "Found in gallery.",
16
  "META" => "Found in meta.",
17
  "META (ID)" => "Found in meta (as an ID).",
views/menu-screen.php CHANGED
@@ -190,6 +190,12 @@
190
  echo "</p></div>";
191
  }
192
 
 
 
 
 
 
 
193
  if ( function_exists( 'amd_zlrecipe_convert_to_recipe' ) ) {
194
  echo "<div class='notice notice-warning'><p>";
195
  _e( "<b>ZipList Recipe has been detected</b>. The free version might detect the files used by ZipList Recipe correctly, but its full support is only available in <a target='_blank' href='//meowapps.com/media-cleaner'>Media Cleaner Pro</a>.", 'media-cleaner' );
190
  echo "</p></div>";
191
  }
192
 
193
+ if ( class_exists( 'Oxygen_VSB_Dynamic_Shortcodes' ) ) {
194
+ echo "<div class='notice notice-warning'><p>";
195
+ _e( "<b>Oxygen Builder has been detected</b>. The free version might detect the files used by Oxygen Builder correctly, but its full support is only available in <a target='_blank' href='//meowapps.com/media-cleaner'>Media Cleaner Pro</a>.", 'media-cleaner' );
196
+ echo "</p></div>";
197
+ }
198
+
199
  if ( function_exists( 'amd_zlrecipe_convert_to_recipe' ) ) {
200
  echo "<div class='notice notice-warning'><p>";
201
  _e( "<b>ZipList Recipe has been detected</b>. The free version might detect the files used by ZipList Recipe correctly, but its full support is only available in <a target='_blank' href='//meowapps.com/media-cleaner'>Media Cleaner Pro</a>.", 'media-cleaner' );