Media Cleaner - Version 3.6.9

Version Description

  • Fix: Little issue when inserting the serial key for the first time.
  • Update: Compliance with the WordPress.org rules, new licensing system.
  • Update: Moved assets.
  • Info: There will be an important warning showing up during this update. It is an important annoucement.
Download this release

Release Info

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

Code changes from version 3.6.8 to 3.6.9

Files changed (4) hide show
  1. common/admin.php +9 -7
  2. media-cleaner.php +5 -5
  3. readme.txt +2 -2
  4. wpmc_admin.php +1 -1
common/admin.php CHANGED
@@ -7,7 +7,9 @@ if ( !class_exists( 'MeowApps_Admin' ) ) {
7
  public static $loaded = false;
8
  public static $version = "1.0";
9
 
10
- public function __construct( $prefix = null, $item = null ) {
 
 
11
  if ( !MeowApps_Admin::$loaded ) {
12
  if ( is_admin() ) {
13
  add_action( 'admin_menu', array( $this, 'admin_menu_start' ) );
@@ -17,7 +19,6 @@ if ( !class_exists( 'MeowApps_Admin' ) ) {
17
  MeowApps_Admin::$loaded = true;
18
  }
19
  $this->prefix = $prefix;
20
- $this->item = $item;
21
  }
22
 
23
  function display_ads() {
@@ -97,7 +98,7 @@ if ( !class_exists( 'MeowApps_Admin' ) ) {
97
  ( $this->is_registered( $this->prefix ) ? '(enabled)' : '(disabled)' ) . '</h3>';
98
  $html .= '<div class="inside">';
99
  echo $html;
100
- $html = apply_filters( 'meowapps_license_input', ( 'More information about the Pro version here:
101
  <a target="_blank" href="' . $url . '">' . $url . '</a>.' ), $url );
102
  $html .= '</div>';
103
  $html .= '</div>';
@@ -105,7 +106,7 @@ if ( !class_exists( 'MeowApps_Admin' ) ) {
105
  }
106
 
107
  function is_registered() {
108
- return apply_filters( 'meowapps_is_registered', false, $this->prefix );
109
  }
110
 
111
  function check_install( $plugin ) {
@@ -254,9 +255,10 @@ if ( !class_exists( 'MeowApps_Admin' ) ) {
254
 
255
  }
256
 
257
- if ( file_exists( plugin_dir_path( __FILE__ ) . '/meowapps/admin.php' ) ) {
258
- require( 'meowapps/admin.php' );
259
- }
 
260
  }
261
 
262
  ?>
7
  public static $loaded = false;
8
  public static $version = "1.0";
9
 
10
+ public $prefix;
11
+
12
+ public function __construct( $prefix = null ) {
13
  if ( !MeowApps_Admin::$loaded ) {
14
  if ( is_admin() ) {
15
  add_action( 'admin_menu', array( $this, 'admin_menu_start' ) );
19
  MeowApps_Admin::$loaded = true;
20
  }
21
  $this->prefix = $prefix;
 
22
  }
23
 
24
  function display_ads() {
98
  ( $this->is_registered( $this->prefix ) ? '(enabled)' : '(disabled)' ) . '</h3>';
99
  $html .= '<div class="inside">';
100
  echo $html;
101
+ $html = apply_filters( $this->prefix . '_meowapps_license_input', ( 'More information about the Pro version here:
102
  <a target="_blank" href="' . $url . '">' . $url . '</a>.' ), $url );
103
  $html .= '</div>';
104
  $html .= '</div>';
106
  }
107
 
108
  function is_registered() {
109
+ return apply_filters( $this->prefix . '_meowapps_is_registered', false, $this->prefix );
110
  }
111
 
112
  function check_install( $plugin ) {
255
 
256
  }
257
 
258
+ }
259
+
260
+ if ( file_exists( plugin_dir_path( __FILE__ ) . '/meowapps/admin.php' ) ) {
261
+ require( 'meowapps/admin.php' );
262
  }
263
 
264
  ?>
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: 3.6.8
7
  Author: Jordy Meow
8
  Author URI: http://meowapps.com
9
  Text Domain: media-cleaner
@@ -31,13 +31,13 @@ add_action( 'wp_ajax_wpmc_recover_do', 'wpmc_wp_ajax_wpmc_recover_do' );
31
  add_filter( 'media_row_actions', 'wpmc_media_row_actions', 10, 2 );
32
 
33
  register_activation_hook( __FILE__, 'wpmc_activate' );
 
34
  register_uninstall_hook( __FILE__, 'wpmc_uninstall' );
35
 
36
  require( 'wpmc_admin.php' );
37
 
38
- global $wpmc_admin, $wpmc_debug, $disable_meowapps,
39
- $wpmc_exclude_dir, $wpmc_version;
40
- $wpmc_version = '3.6.8';
41
  $wpmc_debug = false;
42
  $disable_meowapps = false;
43
  $wpmc_admin = new Meow_MediaCleaner_Admin();
@@ -1004,7 +1004,7 @@ function wpmc_uninstall () {
1004
 
1005
  function wpmc_wp_enqueue_scripts () {
1006
  wp_enqueue_style( 'media-cleaner-css', plugins_url( '/media-cleaner.css', __FILE__ ) );
1007
- wp_enqueue_script( 'media-cleaner', plugins_url( '/media-cleaner.js', __FILE__ ), array( 'jquery' ), "3.6.8", true );
1008
  }
1009
 
1010
  /*******************************************************************************
3
  Plugin Name: Media Cleaner
4
  Plugin URI: http://meowapps.com
5
  Description: Clean your Media Library, many options, trash system.
6
+ Version: 3.6.9
7
  Author: Jordy Meow
8
  Author URI: http://meowapps.com
9
  Text Domain: media-cleaner
31
  add_filter( 'media_row_actions', 'wpmc_media_row_actions', 10, 2 );
32
 
33
  register_activation_hook( __FILE__, 'wpmc_activate' );
34
+ register_deactivation_hook( __FILE__, 'wpmc_uninstall' );
35
  register_uninstall_hook( __FILE__, 'wpmc_uninstall' );
36
 
37
  require( 'wpmc_admin.php' );
38
 
39
+ global $wpmc_admin, $wpmc_debug, $wpmc_exclude_dir, $wpmc_version;
40
+ $wpmc_version = '3.6.9';
 
41
  $wpmc_debug = false;
42
  $disable_meowapps = false;
43
  $wpmc_admin = new Meow_MediaCleaner_Admin();
1004
 
1005
  function wpmc_wp_enqueue_scripts () {
1006
  wp_enqueue_style( 'media-cleaner-css', plugins_url( '/media-cleaner.css', __FILE__ ) );
1007
+ wp_enqueue_script( 'media-cleaner', plugins_url( '/media-cleaner.js', __FILE__ ), array( 'jquery' ), "3.6.9", true );
1008
  }
1009
 
1010
  /*******************************************************************************
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_i
4
  Tags: management, admin, file, files, images, image, media, library, upload, clean, cleaning
5
  Requires at least: 4.2
6
  Tested up to: 4.7
7
- Stable tag: 3.6.8
8
 
9
  Clean your Media Library and Uploads directory. It has an internal trash and recovery features.
10
 
@@ -53,7 +53,7 @@ It re-creates the Media Cleaner table in the database. You will need to re-run t
53
 
54
  == Changelog ==
55
 
56
- = 3.6.8 =
57
  * Fix: Little issue when inserting the serial key for the first time.
58
  * Update: Compliance with the WordPress.org rules, new licensing system.
59
  * Update: Moved assets.
4
  Tags: management, admin, file, files, images, image, media, library, upload, clean, cleaning
5
  Requires at least: 4.2
6
  Tested up to: 4.7
7
+ Stable tag: 3.6.9
8
 
9
  Clean your Media Library and Uploads directory. It has an internal trash and recovery features.
10
 
53
 
54
  == Changelog ==
55
 
56
+ = 3.6.9 =
57
  * Fix: Little issue when inserting the serial key for the first time.
58
  * Update: Compliance with the WordPress.org rules, new licensing system.
59
  * Update: Moved assets.
wpmc_admin.php CHANGED
@@ -5,7 +5,7 @@ include "common/admin.php";
5
  class Meow_MediaCleaner_Admin extends MeowApps_Admin {
6
 
7
  public function __construct() {
8
- parent::__construct();
9
  add_action( 'admin_menu', array( $this, 'app_menu' ) );
10
  add_action( 'admin_notices', array( $this, 'admin_notices' ) );
11
  $method = get_option( 'wpmc_method', 666 );
5
  class Meow_MediaCleaner_Admin extends MeowApps_Admin {
6
 
7
  public function __construct() {
8
+ parent::__construct( 'wpmc' );
9
  add_action( 'admin_menu', array( $this, 'app_menu' ) );
10
  add_action( 'admin_notices', array( $this, 'admin_notices' ) );
11
  $method = get_option( 'wpmc_method', 666 );