Clean Image Filenames - Version 1.1.1

Version Description

  • Added uninstall script that deletes plugin settings when the plugin is uninstalled.
Download this release

Release Info

Developer Upperdog
Plugin Icon wp plugin Clean Image Filenames
Version 1.1.1
Comparing to
See all releases

Code changes from version 1.1 to 1.1.1

Files changed (3) hide show
  1. clean-image-filenames.php +1 -1
  2. readme.txt +10 -2
  3. uninstall.php +17 -0
clean-image-filenames.php CHANGED
@@ -2,7 +2,7 @@
2
  /**
3
  * Plugin Name: Clean Image Filenames
4
  * Description: Filenames with special characters or language accent characters can sometimes be a problem. This plugin takes care of that by cleaning the filenames.
5
- * Version: 1.1
6
  * Author: Upperdog
7
  * Author URI: http://upperdog.com
8
  * Author Email: hello@upperdog.com
2
  /**
3
  * Plugin Name: Clean Image Filenames
4
  * Description: Filenames with special characters or language accent characters can sometimes be a problem. This plugin takes care of that by cleaning the filenames.
5
+ * Version: 1.1.1
6
  * Author: Upperdog
7
  * Author URI: http://upperdog.com
8
  * Author Email: hello@upperdog.com
readme.txt CHANGED
@@ -2,8 +2,8 @@
2
  Contributors: Upperdog, Gesen
3
  Tags: upload, images, files, media,
4
  Requires at least: 2.9
5
- Tested up to: 4.1
6
- Stable tag: 1.1
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=RDLVEE9A2LMUL
@@ -62,6 +62,10 @@ No, this plugin only cleans the filenames of files when they are being uploaded
62
 
63
  == Changelog ==
64
 
 
 
 
 
65
  = 1.1 =
66
 
67
  * Added plugin settings to media settings page with option to convert all file types or just image file types.
@@ -73,6 +77,10 @@ No, this plugin only cleans the filenames of files when they are being uploaded
73
 
74
  == Upgrade Notice ==
75
 
 
 
 
 
76
  = 1.1 =
77
 
78
  This version adds plugin settings to the media settings page which lets you select between cleaning the filenames of all files or images only. The filter from version 1.0 is still available.
2
  Contributors: Upperdog, Gesen
3
  Tags: upload, images, files, media,
4
  Requires at least: 2.9
5
+ Tested up to: 4.9
6
+ Stable tag: 1.1.1
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=RDLVEE9A2LMUL
62
 
63
  == Changelog ==
64
 
65
+ = 1.1.1 =
66
+
67
+ * Added uninstall script that deletes plugin settings when the plugin is uninstalled.
68
+
69
  = 1.1 =
70
 
71
  * Added plugin settings to media settings page with option to convert all file types or just image file types.
77
 
78
  == Upgrade Notice ==
79
 
80
+ = 1.1.1 =
81
+
82
+ This version adds plugin uninstall script that deletes plugin settings if you were to delete the plugin.
83
+
84
  = 1.1 =
85
 
86
  This version adds plugin settings to the media settings page which lets you select between cleaning the filenames of all files or images only. The filter from version 1.0 is still available.
uninstall.php ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Uninstall plugin
4
+ *
5
+ * This file is executed when the plugin is uninstalled and deletes plugin settings.
6
+ *
7
+ * @since 1.1.1
8
+ */
9
+
10
+ // Exit if uninstall is not called from WordPress
11
+ if ( !defined( 'WP_UNINSTALL_PLUGIN' ) )
12
+ exit();
13
+
14
+ // Delete plugin settings
15
+ delete_option( 'clean_image_filenames_plugin_version' );
16
+ delete_option( 'clean_image_filenames_mime_types' );
17
+ ?>