reSmush.it Image Optimizer - Version 0.3.8

Version Description

  • Fix : Fix warning in variable not set (metadata)
  • Fix : Add an extension uppercase check
Download this release

Release Info

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

Code changes from version 0.3.7 to 0.3.8

classes/resmushit.class.php CHANGED
@@ -335,8 +335,8 @@ Class reSmushit {
335
  foreach($all_images as $image){
336
  $tmp = array();
337
  $tmp['ID'] = $image->ID;
338
- $tmp['attachment_metadata'] = unserialize($image->file_meta);
339
-
340
  if( !file_exists(get_attached_file( $image->ID )) ) {
341
  $files_not_found[] = $tmp;
342
  continue;
335
  foreach($all_images as $image){
336
  $tmp = array();
337
  $tmp['ID'] = $image->ID;
338
+ $tmp['attachment_metadata'] = isset($image->file_meta) ? unserialize($image->file_meta) : array();
339
+
340
  if( !file_exists(get_attached_file( $image->ID )) ) {
341
  $files_not_found[] = $tmp;
342
  continue;
readme.txt CHANGED
@@ -3,7 +3,7 @@ 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.2
6
- Stable tag: 0.3.7
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -22,6 +22,8 @@ Since Aug. 2016, reSmush.it allows to optimize pictures up to 5MB, for free !
22
 
23
  This plugin has initially been developped by [Maecia Agency](http://www.maecia.com/ "Maecia Drupal & Wordpress Agency"), Paris.
24
 
 
 
25
  == Installation ==
26
 
27
  1. Upload `resmushit-image-optimizer` to the `/wp-content/plugins/` directory.
@@ -74,6 +76,10 @@ Yes ! Absolutely free, the only restriction is to send images below 5MB.
74
 
75
  == Changelog ==
76
 
 
 
 
 
77
  = 0.3.7 =
78
  * Fix : CSS+JS load on every admin page, now restricted to reSmush.it pages & medias
79
  * Fix : Links verification format for admin menu
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.2
6
+ Stable tag: 0.3.8
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
22
 
23
  This plugin has initially been developped by [Maecia Agency](http://www.maecia.com/ "Maecia Drupal & Wordpress Agency"), Paris.
24
 
25
+ [](http://coderisk.com/wp/plugin/resmushit-image-optimizer/RIPS-Af6lJWjjj5)
26
+
27
  == Installation ==
28
 
29
  1. Upload `resmushit-image-optimizer` to the `/wp-content/plugins/` directory.
76
 
77
  == Changelog ==
78
 
79
+ = 0.3.8 =
80
+ * Fix : Fix warning in variable not set (metadata)
81
+ * Fix : Add an extension uppercase check
82
+
83
  = 0.3.7 =
84
  * Fix : CSS+JS load on every admin page, now restricted to reSmush.it pages & medias
85
  * Fix : Links verification format for admin menu
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.7
14
- * Timestamp: 2020.06.13
15
  * Author: reSmush.it
16
  * Author URI: https://resmush.it
17
  * Author: Charles Bourgeaux
@@ -114,7 +114,7 @@ function resmushit_process_images($attachments, $force_keep_original = TRUE) {
114
  $basefile = basename($attachments[ 'file' ]);
115
 
116
  // Optimize only pictures/files accepted by the API
117
- if( !in_array($extension, resmushit::authorizedExtensions()) ) {
118
  return $attachments;
119
  }
120
 
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.8
14
+ * Timestamp: 2020.07.23
15
  * Author: reSmush.it
16
  * Author URI: https://resmush.it
17
  * Author: Charles Bourgeaux
114
  $basefile = basename($attachments[ 'file' ]);
115
 
116
  // Optimize only pictures/files accepted by the API
117
+ if( !in_array(strtolower($extension), resmushit::authorizedExtensions()) ) {
118
  return $attachments;
119
  }
120
 
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.7');
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.8');
5
  define('RESMUSHIT_DEFAULT_QLTY', '92');
6
  define('RESMUSHIT_TIMEOUT', '10');
7
  define('RESMUSHIT_LOGS_PATH', 'resmushit.log');