ShortPixel Image Optimizer - Version 1.6.10

Version Description

  • Corrected a bug affecting option saving for some of the users.
Download this release

Release Info

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

Code changes from version 1.6.9 to 1.6.10

Files changed (2) hide show
  1. readme.txt +5 -1
  2. wp-shortpixel.php +6 -6
readme.txt CHANGED
@@ -4,7 +4,7 @@ Contributors: AlexSP
4
  Tags: picture, optimization, image editor, pngout, upload speed, shortpixel, compression, jpegmini, webp, lossless, cwebp, media, tinypng, jpegtran,image, image optimisation, 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
5
  Requires at least: 3.0.0 or higher
6
  Tested up to: 4.1
7
- Stable tag: 1.6.9
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -107,6 +107,10 @@ The ShortPixel team is here to help. <a href="https://shortpixel.com/contact">Co
107
 
108
  == Changelog ==
109
 
 
 
 
 
110
  = 1.6.9 =
111
 
112
  * Optimize now option only appears when the image wasn't optimized
4
  Tags: picture, optimization, image editor, pngout, upload speed, shortpixel, compression, jpegmini, webp, lossless, cwebp, media, tinypng, jpegtran,image, image optimisation, 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
5
  Requires at least: 3.0.0 or higher
6
  Tested up to: 4.1
7
+ Stable tag: 1.6.10
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
107
 
108
  == Changelog ==
109
 
110
+ = 1.6.10 =
111
+
112
+ * Corrected a bug affecting option saving for some of the users.
113
+
114
  = 1.6.9 =
115
 
116
  * Optimize now option only appears when the image wasn't optimized
wp-shortpixel.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: ShortPixel Image Optimiser
4
  * Plugin URI: https://shortpixel.com/
5
  * Description: ShortPixel is an image compression tool that helps improve your website performance. The plugin optimises images automatically using both lossy and lossless compression. Resulting, smaller, images are no different in quality from the original. To install: 1) Click the "Activate" link to the left of this description. 2) <a href="https://shortpixel.com/wp-apikey" target="_blank">Free Sign up</a> for your unique API Key . 3) Check your email for your API key. 4) Use your API key to activate ShortPixel plugin in the 'Plugins' menu in WordPress. 5) Done!
6
- * Version: 1.6.9
7
  * Author: ShortPixel
8
  * Author URI: https://shortpixel.com
9
  */
@@ -62,29 +62,29 @@ class WPShortPixel {
62
 
63
  public function populateOptions() {
64
 
65
- if(get_option('wp-short-pixel-apiKey') != false) {
66
  $this->_apiKey = get_option('wp-short-pixel-apiKey');
67
  } else {
68
  add_option( 'wp-short-pixel-apiKey', '', '', 'yes' );
69
  }
70
 
71
- if(get_option('wp-short-pixel-verifiedKey') != false) {
72
  $this->_verifiedKey = get_option('wp-short-pixel-verifiedKey');
73
  }
74
 
75
- if(get_option('wp-short-pixel-compression') != false) {
76
  $this->_compressionType = get_option('wp-short-pixel-compression');
77
  } else {
78
  add_option('wp-short-pixel-compression', $this->_compressionType, '', 'yes');
79
  }
80
 
81
- if(get_option('wp-short-process_thumbnails') != false) {
82
  $this->_processThumbnails = get_option('wp-short-process_thumbnails');
83
  } else {
84
  add_option('wp-short-process_thumbnails', $this->_processThumbnails, '', 'yes' );
85
  }
86
 
87
- if(get_option('wp-short-backup_images') != false) {
88
  $this->_backupImages = get_option('wp-short-backup_images');
89
  } else {
90
  add_option('wp-short-backup_images', $this->_backupImages, '', 'yes' );
3
  * Plugin Name: ShortPixel Image Optimiser
4
  * Plugin URI: https://shortpixel.com/
5
  * Description: ShortPixel is an image compression tool that helps improve your website performance. The plugin optimises images automatically using both lossy and lossless compression. Resulting, smaller, images are no different in quality from the original. To install: 1) Click the "Activate" link to the left of this description. 2) <a href="https://shortpixel.com/wp-apikey" target="_blank">Free Sign up</a> for your unique API Key . 3) Check your email for your API key. 4) Use your API key to activate ShortPixel plugin in the 'Plugins' menu in WordPress. 5) Done!
6
+ * Version: 1.6.10
7
  * Author: ShortPixel
8
  * Author URI: https://shortpixel.com
9
  */
62
 
63
  public function populateOptions() {
64
 
65
+ if(get_option('wp-short-pixel-apiKey') !== false) {
66
  $this->_apiKey = get_option('wp-short-pixel-apiKey');
67
  } else {
68
  add_option( 'wp-short-pixel-apiKey', '', '', 'yes' );
69
  }
70
 
71
+ if(get_option('wp-short-pixel-verifiedKey') !== false) {
72
  $this->_verifiedKey = get_option('wp-short-pixel-verifiedKey');
73
  }
74
 
75
+ if(get_option('wp-short-pixel-compression') !== false) {
76
  $this->_compressionType = get_option('wp-short-pixel-compression');
77
  } else {
78
  add_option('wp-short-pixel-compression', $this->_compressionType, '', 'yes');
79
  }
80
 
81
+ if(get_option('wp-short-process_thumbnails') !== false) {
82
  $this->_processThumbnails = get_option('wp-short-process_thumbnails');
83
  } else {
84
  add_option('wp-short-process_thumbnails', $this->_processThumbnails, '', 'yes' );
85
  }
86
 
87
+ if(get_option('wp-short-backup_images') !== false) {
88
  $this->_backupImages = get_option('wp-short-backup_images');
89
  } else {
90
  add_option('wp-short-backup_images', $this->_backupImages, '', 'yes' );