ShortPixel Image Optimizer - Version 3.2.1

Version Description

  • old PHP compatibility fix
Download this release

Release Info

Developer ShortPixel
Plugin Icon 128x128 ShortPixel Image Optimizer
Version 3.2.1
Comparing to
See all releases

Code changes from version 3.2.0 to 3.2.1

Files changed (3) hide show
  1. readme.txt +6 -2
  2. shortpixel_queue.php +1 -1
  3. wp-shortpixel.php +2 -2
readme.txt CHANGED
@@ -5,7 +5,7 @@ Tags: picture, optimization, image editor, pngout, upload speed, shortpixel, co
5
 
6
  Requires at least: 3.2.0
7
  Tested up to: 4.4
8
- Stable tag: 3.2.0
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -23,7 +23,7 @@ Both new and old images can be optimized with ShortPixel. Once activated, the pl
23
 
24
  **Plugin features. What you see is what you get:**
25
 
26
- * all types of image formats PNG, JPG, GIF (still and animated) and PDF
27
  * thumbnails and featured images are also optimized
28
  * CMYK to RGB conversion
29
  * free 100 image credits/month. Images that are optimized less that 5% are bonus
@@ -170,6 +170,10 @@ The ShortPixel team is here to help. <a href="https://shortpixel.com/contact">Co
170
 
171
  == Changelog ==
172
 
 
 
 
 
173
  = 3.2.0 =
174
 
175
  * ICC color profile is always preserved.
5
 
6
  Requires at least: 3.2.0
7
  Tested up to: 4.4
8
+ Stable tag: 3.2.1
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
23
 
24
  **Plugin features. What you see is what you get:**
25
 
26
+ * supports PNG, JPG, GIF (still and animated) images and PDF documents
27
  * thumbnails and featured images are also optimized
28
  * CMYK to RGB conversion
29
  * free 100 image credits/month. Images that are optimized less that 5% are bonus
170
 
171
  == Changelog ==
172
 
173
+ = 3.2.1 =
174
+
175
+ * old PHP compatibility fix
176
+
177
  = 3.2.0 =
178
 
179
  * ICC color profile is always preserved.
shortpixel_queue.php CHANGED
@@ -176,7 +176,7 @@ class ShortPixelQueue {
176
  $this->bulkAlreadyDoneCount = $res["mainFiles"];
177
  $this->settings->setOpt("wp-short-pixel-bulk-done-count", $this->bulkAlreadyDoneCount);
178
  //percent already done
179
- $this->bulkPreviousPercent = round($this->bulkAlreadyDoneCount / ($this->bulkCount ?: 1) * 100);
180
  $this->settings->setOpt("wp-short-pixel-bulk-previous-percent", $this->bulkPreviousPercent);
181
  }
182
 
176
  $this->bulkAlreadyDoneCount = $res["mainFiles"];
177
  $this->settings->setOpt("wp-short-pixel-bulk-done-count", $this->bulkAlreadyDoneCount);
178
  //percent already done
179
+ $this->bulkPreviousPercent = round($this->bulkAlreadyDoneCount / ($this->bulkCount ? $this->bulkCount : 1) * 100);
180
  $this->settings->setOpt("wp-short-pixel-bulk-previous-percent", $this->bulkPreviousPercent);
181
  }
182
 
wp-shortpixel.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: ShortPixel Image Optimizer
4
  * Plugin URI: https://shortpixel.com/
5
  * Description: ShortPixel optimizes images automatically, while guarding the quality of your images. Check your <a href="options-general.php?page=wp-shortpixel" target="_blank">Settings &gt; ShortPixel</a> page on how to start optimizing your image library and make your website load faster.
6
- * Version: 3.2.0
7
  * Author: ShortPixel
8
  * Author URI: https://shortpixel.com
9
  */
@@ -22,7 +22,7 @@ define('SP_RESET_ON_ACTIVATE', false); //if true TODO set false
22
 
23
  define('SP_AFFILIATE_CODE', '');
24
 
25
- define('PLUGIN_VERSION', "3.2.0");
26
  define('SP_MAX_TIMEOUT', 10);
27
  define('SP_VALIDATE_MAX_TIMEOUT', 15);
28
  define('SP_BACKUP', 'ShortpixelBackups');
3
  * Plugin Name: ShortPixel Image Optimizer
4
  * Plugin URI: https://shortpixel.com/
5
  * Description: ShortPixel optimizes images automatically, while guarding the quality of your images. Check your <a href="options-general.php?page=wp-shortpixel" target="_blank">Settings &gt; ShortPixel</a> page on how to start optimizing your image library and make your website load faster.
6
+ * Version: 3.2.1
7
  * Author: ShortPixel
8
  * Author URI: https://shortpixel.com
9
  */
22
 
23
  define('SP_AFFILIATE_CODE', '');
24
 
25
+ define('PLUGIN_VERSION', "3.2.1");
26
  define('SP_MAX_TIMEOUT', 10);
27
  define('SP_VALIDATE_MAX_TIMEOUT', 15);
28
  define('SP_BACKUP', 'ShortpixelBackups');