ShortPixel Image Optimizer - Version 3.3.3

Version Description

  • Compatibility with WPML Media plugin
  • Fix ListView link on multisites
  • Fix for server configurations that have max_execution_time
Download this release

Release Info

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

Code changes from version 3.3.2 to 3.3.3

js/short-pixel.js CHANGED
@@ -10,7 +10,7 @@ jQuery(document).ready(function($){
10
  }
11
  if( ShortPixel.MEDIA_ALERT == 'todo' && jQuery('div.media-frame.mode-grid').length > 0) {
12
  //the media table is not in the list mode, alert the user
13
- jQuery('div.media-frame.mode-grid').before('<div id="short-pixel-media-alert" class="notice notice-warning"><p>In order to access the ShortPixel Optimization actions and info, please change to <a href="/wp-admin/upload.php?mode=list" class="view-list"><span class="screen-reader-text">List View</span>List View</a><a class="alignright" href="javascript:ShortPixel.dismissMediaAlert();">Dismiss</a></p></div>');
14
  }
15
  //
16
  jQuery(window).unload(function(){
@@ -234,7 +234,7 @@ function checkBulkProcessingCallApi(){
234
  break;
235
  case ShortPixel.STATUS_SUCCESS:
236
  var percent = data["PercentImprovement"];
237
- var otherType = data["Type"].length > 0 ? (data["Type"] == "lossy" ? "lossless" : "lossy") : null;
238
 
239
  var cellMsg = (percent > 0 ? "<div class='sp-column-info'>Reduced by <span class='percent'>" + percent + "%</span> " : "")
240
  + (percent > 0 && percent < 5 ? "<br>" : '')
10
  }
11
  if( ShortPixel.MEDIA_ALERT == 'todo' && jQuery('div.media-frame.mode-grid').length > 0) {
12
  //the media table is not in the list mode, alert the user
13
+ jQuery('div.media-frame.mode-grid').before('<div id="short-pixel-media-alert" class="notice notice-warning"><p>In order to access the ShortPixel Optimization actions and info, please change to <a href="upload.php?mode=list" class="view-list"><span class="screen-reader-text">List View</span>List View</a><a class="alignright" href="javascript:ShortPixel.dismissMediaAlert();">Dismiss</a></p></div>');
14
  }
15
  //
16
  jQuery(window).unload(function(){
234
  break;
235
  case ShortPixel.STATUS_SUCCESS:
236
  var percent = data["PercentImprovement"];
237
+ var otherType = data["Type"].length > 0 ? (data["Type"] == "lossy" ? "lossless" : "lossy") : "";
238
 
239
  var cellMsg = (percent > 0 ? "<div class='sp-column-info'>Reduced by <span class='percent'>" + percent + "%</span> " : "")
240
  + (percent > 0 && percent < 5 ? "<br>" : '')
readme.txt CHANGED
@@ -1,11 +1,11 @@
1
  === ShortPixel Image Optimizer ===
2
 
3
  Contributors: AlexSP
4
- Tags: picture, optimization, image editor, pngout, upload speed, shortpixel, compression, jpegmini, webp, lossless, cwebp, media, jpegtran, image, image optimisation, image optimization, shrink, picture, photo, optimize photos, compress, performance, tinypng, crunch, pngquant, attachment, optimize, pictures, fast, images, image files, image quality, lossy, upload, kraken, resize, seo, smushit, optipng, kraken image optimizer, ewww, photo optimization, gifsicle, image optimizer, images, krakenio, png, gmagick, image optimize, pdf, pdf optimisation, pdf optimization, optimize pdf, optimise pdf, shrink pdf, jpg, jpeg, jpg optimisation, jpg optimization, optimize jpg, optimise jpg, shrink jpg, gif, animated gif, optimize gif, optimise gif, optimizer, optimiser, compresion, optimization, cruncher, image cruncher, compress png, compress jpg, compress jpeg, compress pdf, faster loading times, image optimiser, improve pagerank, optimise, optimize animated gif, optimise jpeg, optimize jpeg, optimize png, optimise png, optimise pdf, optimize pdf, tinyjpg, short pixel, shortpixel, woocommerce compatible, wpml compatible
5
 
6
  Requires at least: 3.2.0
7
- Tested up to: 4.4
8
- Stable tag: 3.3.2
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -13,62 +13,85 @@ Easy-to-use, lightweight plugin that optimizes images & PDFs. Make your website
13
 
14
  == Description ==
15
 
16
- ShortPixel makes your website load faster by reducing the size of your images and helps you rank better in Google search. With both lossy and lossless <a rel="friend" href="https://shortpixel.com">image compression</a> available for all common image types (PNG, JPG, GIF), plus PDF files. The plugin is free to use for 100 images/month.
17
 
 
18
 
19
  **How does it work?**
20
 
21
- Both new and old images can be optimized with ShortPixel. Once activated, the plugin instantly processes new images uploaded to your website. Bulk optimization will automatically process all your past image gallery with one click. Images and thumbnails are processed in the cloud, and replaced back into your website. It’s simple to use, yet incredibly powerful.
 
 
 
22
 
 
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
 
 
30
  * no file size limit
31
- * originals are saved in a backup folder and can be manually restored
32
- * 'Bulk' optimize past gallery with one click
 
33
  * 40 days optimization report with all image details and overall statistics
34
  * works great for eCommerce websites using WooCommerce plugin
35
- * multisite support for a single API key
36
- * compatible with WP Engine hosted websites
37
- * 24h support from our fantastic team
 
 
38
 
39
- ShortPixel free and paid plans offer the same features and deliver the same optimization quality. The difference is made by the available image quota. 100 images/month are for free, additional image quota requires a small fee ($4,99 for 5,000 image credits).
40
 
41
- Both monthly subscriptions and one-time plans are available. The same plan can be used for multiple websites. Make an instant <a rel="friend" href="http://shortpixel.com/image-compression-test">image compression test</a> on your site or <a rel="friend" href="http://shortpixel.com/online-image-compression">compress some images</a> to make sure they are to your liking.
42
 
43
- We believe in a better society, so we support educational non-profits. <a href="http://shortpixel.com/contact">Contact us</a> and we’ll see how we can help!
44
 
45
  Help us spread a the word by recommending ShortPixel to your friends and collect 100 additional image credits for each referred sign up.
46
- Make money by promoting a great plugin with our <a href="https://shortpixel.com/free-sign-up-affiliate">50/50 affiliate program</a>.
47
-
48
- **Why use ShortPixel to optimize your images?**
49
 
50
- Image size is crucial to your website’s speed, and website speed affects search ranking. With ShortPixel plugin you will downsize your images and improve your web performance on the spot.
51
-
52
- Read more about how <a href="http://googlewebmastercentral.blogspot.ro/2010/04/using-site-speed-in-web-search-ranking.html">Google ranks website speed</a>.
53
 
54
  > ★★★★★ **Increased Page Speed and Optimizes Properly**
55
  > "I noticed a huge difference on page speed after running the bulk compression. Does exactly as promised. An excellent plugin for those that care about page speed, SEO and optimizing their sites to the fullest potential." — [BrowCo](https://wordpress.org/support/topic/increased-page-speed-and-optimizes-properly#post-)
56
  >
57
 
 
 
 
 
 
 
 
 
 
58
 
59
  **New features coming soon:**
60
 
61
  * support for NextGen Galley
 
62
  * mass restore for backed-up images
63
 
64
 
65
  **Get in touch!**
66
 
67
- * Email <a href="https://shortpixel.com/contact">https://shortpixel.com/contact</a>
68
- * Twitter <a href="https://twitter.com/shortpixel">https://twitter.com/shortpixel</a>
69
- * Google+ <a href="https://www.google.com/+Shortpixelpage">https://www.google.com/+Shortpixelpage</a>
70
- * Facebook <a href="https://www.facebook.com/ShortPixel">https://www.facebook.com/ShortPixel</a>
71
- * LinkedIn <a href="https://www.linkedin.com/company/shortpixel">https://www.linkedin.com/company/shortpixel</a>
 
 
72
 
73
 
74
  == Installation ==
@@ -170,6 +193,12 @@ The ShortPixel team is here to help. <a href="https://shortpixel.com/contact">Co
170
 
171
  == Changelog ==
172
 
 
 
 
 
 
 
173
  = 3.3.2 =
174
 
175
  * fix for PHP installs that are missing the mcrypt functions
1
  === ShortPixel Image Optimizer ===
2
 
3
  Contributors: AlexSP
4
+ Tags: image optimizer, image optimization, compress pdf, compress jpeg, compress png, image compression, wp smush, compress images, optimize images, shrink jpeg, optimize photos, tinypng
5
 
6
  Requires at least: 3.2.0
7
+ Tested up to: 4.5
8
+ Stable tag: 3.3.3
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
13
 
14
  == Description ==
15
 
16
+ ShortPixel makes your website load faster by resizing/rescaling and then compressing the images. Optimized images mean better user experience, better PageSpeed Insights results, better Google PageRank (SEO) and more visitors. Both lossy and lossless <a rel="friend" href="https://shortpixel.com" target="_blank">image compression</a> available for all common image types (JPG, PNG and GIF), plus PDF files.
17
 
18
+ ShortPixel optimized so far over 60M images from 32,000 different websites saving them more than 10 Petabytes of traffic.
19
 
20
  **How does it work?**
21
 
22
+ * choose your favorite settings like lossy/lossless, keep/remove EXIF, backup, optimize thumbs, etc.
23
+ * all your current pics can be easily scaled and optimized with a single click via our **bulk optimization** page.
24
+ * new images are automatically resized and compressed in the cloud right after they are uploaded.
25
+ * smaller images will start being served from your website once they were optimized
26
 
27
+ It's that easy indeed.
28
 
29
+ You can try a **live demo** <a href="https://addendio.com/try-plugin/?slug=shortpixel-image-optimiser" target="_blank">here</a> (via addendio.com) or you can watch a short intro video on how to optimize images with our plugin:
30
 
31
+ [youtube https://www.youtube.com/watch?v=5EbX0Hsy6j4]
32
+
33
+ **Why use ShortPixel to optimize your images? Here are some of the features:**
34
+
35
+ * **24h support** directly from the developers
36
+ * compress JPG, PNG, GIF (still and animated) images and PDF documents
37
+ * optimize thumbnails as well as featured images
38
+ * featured images can be rescaled before being optimized. **No need for additional plugins** like Imsanity
39
  * CMYK to RGB conversion
40
+ * skip already optimized images
41
+ * easily test lossy/lossless versions of the images
42
+ * great for photographers: **keep or remove EXIF** data from your images
43
  * no file size limit
44
+ * works well with both HTTPS and HTTP websites
45
+ * it is safe to test and use the plugin: all the original **images can be restored** with a click
46
+ * 'Bulk' optimize existing images with one click
47
  * 40 days optimization report with all image details and overall statistics
48
  * works great for eCommerce websites using WooCommerce plugin
49
+ * Use the **same API Key** on many sites (including multisites)
50
+ * compatible with WP Engine hosted websites and all the major hosting providers
51
+ * compatible with WPML and WPML Media plugins
52
+ * receive **100 free image optimization credits** each month.
53
+ * images that are optimized less that 5% are bonus
54
 
55
+ ShortPixel free and paid plans offer the same features and deliver the same optimization quality. The difference is made by the available image quota. Additional image quota can be bought for as little as $4,99 for 5,000 image optimization credits.
56
 
57
+ Both monthly subscriptions and one-time plans are available. The same plan can be used for multiple websites. Make an instant <a rel="friend" href="http://shortpixel.com/image-compression-test" target="_blank">image compression test</a> on your site or <a rel="friend" href="http://shortpixel.com/online-image-compression" target="_blank">compress some images</a> to make sure they are to your liking.
58
 
59
+ We believe in a better society, so we support non-profits. <a href="http://shortpixel.com/contact" target="_blank">Contact us</a> and we’ll see how we can help!
60
 
61
  Help us spread a the word by recommending ShortPixel to your friends and collect 100 additional image credits for each referred sign up.
62
+ Make money by promoting a great plugin with our <a href="https://shortpixel.com/free-sign-up-affiliate" target="_blank">50/50 affiliate program</a>.
 
 
63
 
 
 
 
64
 
65
  > ★★★★★ **Increased Page Speed and Optimizes Properly**
66
  > "I noticed a huge difference on page speed after running the bulk compression. Does exactly as promised. An excellent plugin for those that care about page speed, SEO and optimizing their sites to the fullest potential." — [BrowCo](https://wordpress.org/support/topic/increased-page-speed-and-optimizes-properly#post-)
67
  >
68
 
69
+ > ★★★★★ **Great tool and excellent support**
70
+ > "This tool does what it's supposed to do: automatically compress images with a great, clear interface. Also, support is more than excellent with the developers trying everything to help you, even beyond the scope of the plugin! Very recommended." — [Tomeranaray](https://wordpress.org/support/topic/great-tool-and-excellent-support-2?replies=1)
71
+ >
72
+
73
+ > ★★★★★ **Outstanding Time Saving Application**
74
+ > "What a time saver! I bought Short Pixel on the advice of my website designer because it would save him time optimizing the photos in a website and therefore save me money. This has worked out for all of us- my client saved money on our time; and the software is bullet proof.
75
+ We will continue to purchase this software for any site we develop with a lot of photos." — [amulhern](https://wordpress.org/support/topic/outstanding-time-saving-application?replies=1#post-)
76
+ >
77
+
78
 
79
  **New features coming soon:**
80
 
81
  * support for NextGen Galley
82
+ * support for custom image locations.
83
  * mass restore for backed-up images
84
 
85
 
86
  **Get in touch!**
87
 
88
+ * Email <a href="https://shortpixel.com/contact" target="_blank">https://shortpixel.com/contact</a>
89
+ * Twitter <a href="https://twitter.com/shortpixel" target="_blank">https://twitter.com/shortpixel</a>
90
+ * Google+ <a href="https://www.google.com/+Shortpixelpage" target="_blank">https://www.google.com/+Shortpixelpage</a>
91
+ * Facebook <a href="https://www.facebook.com/ShortPixel" target="_blank">https://www.facebook.com/ShortPixel</a>
92
+ * LinkedIn <a href="https://www.linkedin.com/company/shortpixel" target="_blank">https://www.linkedin.com/company/shortpixel</a>
93
+
94
+ **Keywords:** picture, optimization, image editor, pngout, upload speed, shortpixel, compression, jpegmini, webp, lossless, cwebp, media, jpegtran, image, image optimisation, image optimization, shrink, picture, photo, optimize photos, compress, performance, tinypng, crunch, pngquant, attachment, optimize, pictures, fast, images, image files, image quality, lossy, upload, kraken, resize, seo, smushit, optipng, kraken image optimizer, ewww, photo optimization, gifsicle, image optimizer, images, krakenio, png, gmagick, image optimize, pdf, pdf optimisation, pdf optimization, optimize pdf, optimise pdf, shrink pdf, jpg, jpeg, jpg optimisation, jpg optimization, optimize jpg, optimise jpg, shrink jpg, gif, animated gif, optimize gif, optimise gif, optimizer, optimiser, compresion, optimization, cruncher, image cruncher, compress png, compress jpg, compress jpeg, compress pdf, faster loading times, image optimiser, improve pagerank, optimise, optimize animated gif, optimise jpeg, optimize jpeg, optimize png, optimise png, optimise pdf, optimize pdf, tinyjpg, short pixel, shortpixel, woocommerce compatible, wpml compatible, smush, imsanity, scale, wp smush, compress images, pdf compression, optimize images, shrink jpeg, compressor, faster website, google pagerank, imagify, prizm, optimus, zara, improve page speed, PageSpeed Insights, sitespeed, smaller images, tinyjpeg, wordpress compression, wordPress image tool, reduce image size, bandwidth, pics, keep exif, remove exif, speed up site, speed up website, compress thumbnails, optimize thumbnails
95
 
96
 
97
  == Installation ==
193
 
194
  == Changelog ==
195
 
196
+ = 3.3.3 =
197
+
198
+ * Compatibility with WPML Media plugin
199
+ * Fix ListView link on multisites
200
+ * Fix for server configurations that have max_execution_time = 0
201
+
202
  = 3.3.2 =
203
 
204
  * fix for PHP installs that are missing the mcrypt functions
shortpixel_api.php CHANGED
@@ -229,7 +229,7 @@ class ShortPixelAPI {
229
  $correctFileSize = $fileData->$fileSize;
230
  $fileURL = $this->setPreferredProtocol(urldecode($fileData->$fileType));
231
 
232
- $downloadTimeout = ini_get('max_execution_time') - 10;
233
  $tempFiles[$counter] = download_url($fileURL, $downloadTimeout);
234
  //var_dump($tempFiles);
235
 
@@ -415,10 +415,21 @@ class ShortPixelAPI {
415
  SELECT pm.post_id FROM {$wpdb->postmeta} pm
416
  WHERE pm.meta_value = %s AND pm.meta_key = '_icl_lang_duplicate_of'
417
  ", $id ) );
418
-
419
  if(!in_array($id, $duplicates)) $duplicates[] = $id;
420
 
421
- return $duplicates;
 
 
 
 
 
 
 
 
 
 
 
422
  }
423
 
424
 
229
  $correctFileSize = $fileData->$fileSize;
230
  $fileURL = $this->setPreferredProtocol(urldecode($fileData->$fileType));
231
 
232
+ $downloadTimeout = max(ini_get('max_execution_time') - 10, 15);
233
  $tempFiles[$counter] = download_url($fileURL, $downloadTimeout);
234
  //var_dump($tempFiles);
235
 
415
  SELECT pm.post_id FROM {$wpdb->postmeta} pm
416
  WHERE pm.meta_value = %s AND pm.meta_key = '_icl_lang_duplicate_of'
417
  ", $id ) );
418
+
419
  if(!in_array($id, $duplicates)) $duplicates[] = $id;
420
 
421
+ $transTable = $wpdb->get_results("SELECT COUNT(1) hasTransTable FROM information_schema.tables WHERE table_schema='{$wpdb->dbname}' AND table_name='{$wpdb->prefix}icl_translations'");
422
+ if(isset($transTable[0]->hasTransTable) && $transTable[0]->hasTransTable > 0) {
423
+ $transGroupId = $wpdb->get_results("SELECT trid FROM {$wpdb->prefix}icl_translations WHERE element_id = {$id}");
424
+ if(count($transGroupId)) {
425
+ $transGroup = $wpdb->get_results("SELECT element_id FROM {$wpdb->prefix}icl_translations WHERE trid = " . $transGroupId[0]->trid);
426
+ foreach($transGroup as $trans) {
427
+ $duplicates[] = $trans->element_id;
428
+ }
429
+ }
430
+ }
431
+
432
+ return array_unique($duplicates);
433
  }
434
 
435
 
shortpixel_view.php CHANGED
@@ -191,7 +191,7 @@ class ShortPixelView {
191
  <?php } ?>
192
  <div class="bulk-progress">
193
  <?php
194
- $todo = false;
195
  if($quotaData['totalProcessedFiles'] < $quotaData['totalFiles']) {
196
  $todo = true;
197
  $mainNotProcessed = $quotaData['mainFiles'] - $quotaData['mainProcessedFiles'];
@@ -216,7 +216,7 @@ class ShortPixelView {
216
  && ( ($quotaData['totalProcLossyFiles'] > 0 && $settings->compressionType == 0)
217
  || ($quotaData['totalProcLosslessFiles'] > 0 && $settings->compressionType == 1)))
218
  {
219
- $todo = true;
220
  $statType = $settings->compressionType == '1' ? 'Lossless' : 'Lossy';
221
  $thumbsCount = $quotaData['totalProc'.$statType.'Files'] - $quotaData['mainProc'.$statType.'Files'];
222
  ?>
@@ -244,7 +244,9 @@ class ShortPixelView {
244
  } ?>
245
  <p>Restart the optimization process for <?php echo($todo ? 'these images' : 'new images added to your library');?> by clicking the button below.
246
  Already <strong><?php echo($todo ? ($optType) : '');?></strong> optimized images will not be reprocessed.
 
247
  <br>Please note that reoptimizing images as <strong>lossy/lossless</strong> may use additional credits. <a href="http://blog.shortpixel.com/the-all-new-re-optimization-functions-in-shortpixel/" target="_blank">More info</a>
 
248
  </p>
249
  <form action='' method='POST' >
250
  <input type='checkbox' id='bulk-thumbnails' name='thumbnails' <?php echo($this->ctrl->processThumbnails() ? "checked":"");?> onchange="ShortPixel.onBulkThumbsCheck(this)"> Include thumbnails<br><br>
@@ -489,7 +491,8 @@ class ShortPixelView {
489
  <input type="text" name="width" id="width" style="width:70px" value="<?php echo( max($this->ctrl->getResizeWidth(), min(1024, $minSizes['width'])) );?>" <?php echo( $resizeDisabled );?>/> pixels wide &times;
490
  <input type="text" name="height" id="height" style="width:70px" value="<?php echo( max($this->ctrl->getResizeHeight(), min(1024, $minSizes['height'])) );?>" <?php echo( $resizeDisabled );?>/> pixels high (original aspect ratio is preserved)
491
  <p class="settings-info"> Recommended for large photos, like the ones taken with your phone. Saved space can go up to 80% or more after resizing.<br/>
492
- The new resolution should not be less than your largest thumbnail size, which is <?php echo($minSizes['width']);?> &times; <?php echo($minSizes['height']);?> pixels.</p>
 
493
  </td>
494
  </tr>
495
  </tbody>
191
  <?php } ?>
192
  <div class="bulk-progress">
193
  <?php
194
+ $todo = $reopt = false;
195
  if($quotaData['totalProcessedFiles'] < $quotaData['totalFiles']) {
196
  $todo = true;
197
  $mainNotProcessed = $quotaData['mainFiles'] - $quotaData['mainProcessedFiles'];
216
  && ( ($quotaData['totalProcLossyFiles'] > 0 && $settings->compressionType == 0)
217
  || ($quotaData['totalProcLosslessFiles'] > 0 && $settings->compressionType == 1)))
218
  {
219
+ $todo = $reopt = true;
220
  $statType = $settings->compressionType == '1' ? 'Lossless' : 'Lossy';
221
  $thumbsCount = $quotaData['totalProc'.$statType.'Files'] - $quotaData['mainProc'.$statType.'Files'];
222
  ?>
244
  } ?>
245
  <p>Restart the optimization process for <?php echo($todo ? 'these images' : 'new images added to your library');?> by clicking the button below.
246
  Already <strong><?php echo($todo ? ($optType) : '');?></strong> optimized images will not be reprocessed.
247
+ <?php if($reopt) { ?>
248
  <br>Please note that reoptimizing images as <strong>lossy/lossless</strong> may use additional credits. <a href="http://blog.shortpixel.com/the-all-new-re-optimization-functions-in-shortpixel/" target="_blank">More info</a>
249
+ <?php } ?>
250
  </p>
251
  <form action='' method='POST' >
252
  <input type='checkbox' id='bulk-thumbnails' name='thumbnails' <?php echo($this->ctrl->processThumbnails() ? "checked":"");?> onchange="ShortPixel.onBulkThumbsCheck(this)"> Include thumbnails<br><br>
491
  <input type="text" name="width" id="width" style="width:70px" value="<?php echo( max($this->ctrl->getResizeWidth(), min(1024, $minSizes['width'])) );?>" <?php echo( $resizeDisabled );?>/> pixels wide &times;
492
  <input type="text" name="height" id="height" style="width:70px" value="<?php echo( max($this->ctrl->getResizeHeight(), min(1024, $minSizes['height'])) );?>" <?php echo( $resizeDisabled );?>/> pixels high (original aspect ratio is preserved)
493
  <p class="settings-info"> Recommended for large photos, like the ones taken with your phone. Saved space can go up to 80% or more after resizing.<br/>
494
+ The new resolution should not be less than your largest thumbnail size, which is <?php echo($minSizes['width']);?> &times; <?php echo($minSizes['height']);?> pixels,
495
+ or, if you have a Retina images plugin, <?php echo(2 * $minSizes['width']);?> &times; <?php echo(2 * $minSizes['height']);?> pixels.</p>
496
  </td>
497
  </tr>
498
  </tbody>
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.3.2
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.3.2");
26
  define('SP_MAX_TIMEOUT', 10);
27
  define('SP_VALIDATE_MAX_TIMEOUT', 15);
28
  define('SP_BACKUP', 'ShortpixelBackups');
@@ -1555,7 +1555,7 @@ class WPShortPixel {
1555
  elseif ( isset($attachment['sizes']) ) {
1556
  $thumbs = count($attachment['sizes']);
1557
  }
1558
- if ( isset($attachment['sizes']) & count($attachment['sizes']) > $thumbs) {
1559
  $mainUnprocessedThumbs++;
1560
  }
1561
 
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.3.3
7
  * Author: ShortPixel
8
  * Author URI: https://shortpixel.com
9
  */
22
 
23
  define('SP_AFFILIATE_CODE', '');
24
 
25
+ define('PLUGIN_VERSION', "3.3.3");
26
  define('SP_MAX_TIMEOUT', 10);
27
  define('SP_VALIDATE_MAX_TIMEOUT', 15);
28
  define('SP_BACKUP', 'ShortpixelBackups');
1555
  elseif ( isset($attachment['sizes']) ) {
1556
  $thumbs = count($attachment['sizes']);
1557
  }
1558
+ if ( isset($attachment['sizes']) && count($attachment['sizes']) > $thumbs) {
1559
  $mainUnprocessedThumbs++;
1560
  }
1561