Media Cleaner - Version 4.2.3

Version Description

  • Fix: Meta search issue.
  • Fix: SQL typo for WooCommerce detection.
  • Fix: Avoid checking the empty arrays.
Download this release

Release Info

Developer TigrouMeow
Plugin Icon 128x128 Media Cleaner
Version 4.2.3
Comparing to
See all releases

Code changes from version 4.2.2 to 4.2.3

Files changed (3) hide show
  1. common/admin.php +4 -3
  2. media-cleaner.php +2 -2
  3. readme.txt +2 -2
common/admin.php CHANGED
@@ -52,8 +52,8 @@ if ( !class_exists( 'MeowApps_Admin' ) ) {
52
  if ( empty( $rating_date ) ) {
53
  $two_months = strtotime( '+2 months' );
54
  $six_months = strtotime( '+6 months' );
55
- $future_date = mt_rand( $two_months, $six_months );
56
- update_option( $this->prefix . '_rating_date', $future_date, false );
57
  }
58
  return $rating_date;
59
  }
@@ -76,7 +76,8 @@ if ( !class_exists( 'MeowApps_Admin' ) ) {
76
  update_option( $this->prefix . '_rating_date', $twenty_years, false );
77
  return;
78
  }
79
- echo '<div class="notice notice-success"">';
 
80
  echo '<p style="font-size: 120%;">You have been using <b>' . $this->nice_name_from_file( $this->mainfile ) . '</b> for some time now. If you enjoy it, could you share your thoughts and give the developers a sweet spike of motivation? In that case, please: <a target="_blank" href="https://wordpress.org/support/plugin/' . $this->nice_short_url_from_file( $this->mainfile ) . '/reviews/?rate=5#new-post">review it</a>. Thank you :)';
81
  echo '<p>
82
  <form method="post" action="" style="float: right;">
52
  if ( empty( $rating_date ) ) {
53
  $two_months = strtotime( '+2 months' );
54
  $six_months = strtotime( '+6 months' );
55
+ $rating_date = mt_rand( $two_months, $six_months );
56
+ update_option( $this->prefix . '_rating_date', $rating_date, false );
57
  }
58
  return $rating_date;
59
  }
76
  update_option( $this->prefix . '_rating_date', $twenty_years, false );
77
  return;
78
  }
79
+ $rating_date = get_option( $this->prefix . '_rating_date' );
80
+ echo '<div class="notice notice-success" data-rating-date="' . $rating_date . '>';
81
  echo '<p style="font-size: 120%;">You have been using <b>' . $this->nice_name_from_file( $this->mainfile ) . '</b> for some time now. If you enjoy it, could you share your thoughts and give the developers a sweet spike of motivation? In that case, please: <a target="_blank" href="https://wordpress.org/support/plugin/' . $this->nice_short_url_from_file( $this->mainfile ) . '/reviews/?rate=5#new-post">review it</a>. Thank you :)';
82
  echo '<p>
83
  <form method="post" action="" style="float: right;">
media-cleaner.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Media Cleaner
4
  Plugin URI: http://meowapps.com
5
  Description: Clean your Media Library, many options, trash system.
6
- Version: 4.2.2
7
  Author: Jordy Meow
8
  Author URI: http://meowapps.com
9
  Text Domain: media-cleaner
@@ -27,7 +27,7 @@ if ( class_exists( 'Meow_WPMC_Core' ) ) {
27
  if ( is_admin() ) {
28
 
29
  global $wpmc_version;
30
- $wpmc_version = '4.2.2';
31
 
32
  // Admin
33
  require( 'wpmc_admin.php' );
3
  Plugin Name: Media Cleaner
4
  Plugin URI: http://meowapps.com
5
  Description: Clean your Media Library, many options, trash system.
6
+ Version: 4.2.3
7
  Author: Jordy Meow
8
  Author URI: http://meowapps.com
9
  Text Domain: media-cleaner
27
  if ( is_admin() ) {
28
 
29
  global $wpmc_version;
30
+ $wpmc_version = '4.2.3';
31
 
32
  // Admin
33
  require( 'wpmc_admin.php' );
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: TigrouMeow
3
  Tags: management, admin, file, files, images, image, media, library, upload, clean, cleaning
4
  Requires at least: 4.2
5
  Tested up to: 4.8
6
- Stable tag: 4.2.2
7
 
8
  Clean your Media Library and Uploads directory. It has an internal trash and recovery features. Please read the description.
9
 
@@ -50,7 +50,7 @@ It re-creates the Media Cleaner table in the database. You will need to re-run t
50
 
51
  == Changelog ==
52
 
53
- = 4.2.2 =
54
  * Fix: Meta search issue.
55
  * Fix: SQL typo for WooCommerce detection.
56
  * Fix: Avoid checking the empty arrays.
3
  Tags: management, admin, file, files, images, image, media, library, upload, clean, cleaning
4
  Requires at least: 4.2
5
  Tested up to: 4.8
6
+ Stable tag: 4.2.3
7
 
8
  Clean your Media Library and Uploads directory. It has an internal trash and recovery features. Please read the description.
9
 
50
 
51
  == Changelog ==
52
 
53
+ = 4.2.3 =
54
  * Fix: Meta search issue.
55
  * Fix: SQL typo for WooCommerce detection.
56
  * Fix: Avoid checking the empty arrays.