reSmush.it Image Optimizer - Version 0.3.1

Version Description

  • Fix log write (permission issue)
  • Fix "Reduce by 0 (0 saved)" error. Optimize single attachment while "Optimize on upload" is disabled
Download this release

Release Info

Developer resmushit
Plugin Icon 128x128 reSmush.it Image Optimizer
Version 0.3.1
Comparing to
See all releases

Code changes from version 0.3.0 to 0.3.1

Files changed (4) hide show
  1. readme.txt +6 -2
  2. resmushit.inc.php +1 -1
  3. resmushit.php +3 -3
  4. resmushit.settings.php +1 -1
readme.txt CHANGED
@@ -2,8 +2,8 @@
2
  Contributors: resmushit
3
  Tags: image, optimizer, image optimization, resmush.it, smush, jpg, png, gif, optimization, compression, Compress, Images, Pictures, Reduce Image Size, Smush, Smush.it
4
  Requires at least: 4.0.0
5
- Tested up to: 5.3.2
6
- Stable tag: 0.3.0
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -70,6 +70,10 @@ Yes ! Absolutely free, the only restriction is to send images below 5MB.
70
 
71
  == Changelog ==
72
 
 
 
 
 
73
  = 0.3.0 =
74
  * Add Backup deletion option
75
  * Add script to delete old backups
2
  Contributors: resmushit
3
  Tags: image, optimizer, image optimization, resmush.it, smush, jpg, png, gif, optimization, compression, Compress, Images, Pictures, Reduce Image Size, Smush, Smush.it
4
  Requires at least: 4.0.0
5
+ Tested up to: 5.4.0
6
+ Stable tag: 0.3.1
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
70
 
71
  == Changelog ==
72
 
73
+ = 0.3.1 =
74
+ * Fix log write (permission issue)
75
+ * Fix "Reduce by 0 (0 saved)" error. Optimize single attachment while "Optimize on upload" is disabled
76
+
77
  = 0.3.0 =
78
  * Add Backup deletion option
79
  * Add script to delete old backups
resmushit.inc.php CHANGED
@@ -33,7 +33,7 @@ function rlog($str, $level = 'SUCCESS') {
33
  if(get_option('resmushit_logs') == 0)
34
  return FALSE;
35
 
36
- if( !is_writable(ABSPATH . RESMUSHIT_LOGS_PATH) ) {
37
  return FALSE;
38
  }
39
  // Preserve file size under a reasonable value
33
  if(get_option('resmushit_logs') == 0)
34
  return FALSE;
35
 
36
+ if( !is_writable(ABSPATH) ) {
37
  return FALSE;
38
  }
39
  // Preserve file size under a reasonable value
resmushit.php CHANGED
@@ -10,8 +10,8 @@
10
  * Plugin Name: reSmush.it Image Optimizer
11
  * Plugin URI: https://wordpress.org/plugins/resmushit-image-optimizer/
12
  * Description: Image Optimization API. Provides image size optimization
13
- * Version: 0.3.0
14
- * Timestamp: 2020.02.16
15
  * Author: reSmush.it
16
  * Author URI: https://resmush.it
17
  * Author: Charles Bourgeaux
@@ -138,7 +138,7 @@ function resmushit_process_images($attachments, $force_keep_original = TRUE) {
138
  return $attachments;
139
  }
140
  //Automatically optimize images if option is checked
141
- if(get_option('resmushit_on_upload') OR ( isset($_POST['action']) AND $_POST['action'] === "resmushit_bulk_process_image" ))
142
  add_filter('wp_generate_attachment_metadata', 'resmushit_process_images');
143
 
144
 
10
  * Plugin Name: reSmush.it Image Optimizer
11
  * Plugin URI: https://wordpress.org/plugins/resmushit-image-optimizer/
12
  * Description: Image Optimization API. Provides image size optimization
13
+ * Version: 0.3.1
14
+ * Timestamp: 2020.03.07
15
  * Author: reSmush.it
16
  * Author URI: https://resmush.it
17
  * Author: Charles Bourgeaux
138
  return $attachments;
139
  }
140
  //Automatically optimize images if option is checked
141
+ if(get_option('resmushit_on_upload') OR ( isset($_POST['action']) AND ($_POST['action'] === "resmushit_bulk_process_image" ) OR $_POST['action'] === "resmushit_optimize_single_attachment" ))
142
  add_filter('wp_generate_attachment_metadata', 'resmushit_process_images');
143
 
144
 
resmushit.settings.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
 
3
  define('RESMUSHIT_ENDPOINT', 'http://api.resmush.it/');
4
- define('RESMUSHIT_VERSION', '0.3.0');
5
  define('RESMUSHIT_DEFAULT_QLTY', '92');
6
  define('RESMUSHIT_TIMEOUT', '10');
7
  define('RESMUSHIT_LOGS_PATH', 'resmushit.log');
1
  <?php
2
 
3
  define('RESMUSHIT_ENDPOINT', 'http://api.resmush.it/');
4
+ define('RESMUSHIT_VERSION', '0.3.1');
5
  define('RESMUSHIT_DEFAULT_QLTY', '92');
6
  define('RESMUSHIT_TIMEOUT', '10');
7
  define('RESMUSHIT_LOGS_PATH', 'resmushit.log');