ShortPixel Image Optimizer - Version 2.0.9

Version Description

  • fixed some missing quotes
  • fixed DB access in a function
Download this release

Release Info

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

Code changes from version 2.0.8 to 2.0.9

Files changed (2) hide show
  1. readme.txt +6 -1
  2. wp-shortpixel.php +5 -3
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, pdf, pdf optimisation, optimise pdf, shrink pdf, jpg, jpeg, jpg optimisation, optimise jpg, shrink jpg, gif, animated gif, optimise gif
5
  Requires at least: 3.0.0 or higher
6
  Tested up to: 4.1.1
7
- Stable tag: 2.0.8
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -107,6 +107,11 @@ The ShortPixel team is here to help. <a href="https://shortpixel.com/contact">Co
107
 
108
  == Changelog ==
109
 
 
 
 
 
 
110
  = 2.0.8 =
111
 
112
  * improved logic for processed files to be downloaded every time
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, pdf, pdf optimisation, optimise pdf, shrink pdf, jpg, jpeg, jpg optimisation, optimise jpg, shrink jpg, gif, animated gif, optimise gif
5
  Requires at least: 3.0.0 or higher
6
  Tested up to: 4.1.1
7
+ Stable tag: 2.0.9
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
107
 
108
  == Changelog ==
109
 
110
+ = 2.0.9 =
111
+
112
+ * fixed some missing quotes
113
+ * fixed DB access in a function
114
+
115
  = 2.0.8 =
116
 
117
  * improved logic for processed files to be downloaded every time
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: 2.0.8
7
  * Author: ShortPixel
8
  * Author URI: https://shortpixel.com
9
  */
@@ -12,7 +12,7 @@ require_once('shortpixel_api.php');
12
  require_once( ABSPATH . 'wp-admin/includes/image.php' );
13
  require_once( ABSPATH . 'wp-includes/pluggable.php' );
14
 
15
- define('PLUGIN_VERSION', "2.0.8");
16
  define('SP_DEBUG', false);
17
  define('SP_LOG', false);
18
  define('SP_MAX_TIMEOUT', 10);
@@ -118,7 +118,7 @@ class WPShortPixel {
118
  if(get_option('wp-short-pixel-view-mode') === false)
119
  {
120
  add_option('wp-short-pixel-view-mode', 1, '', 'yes' );
121
- if ( function_exists(get_currentuserinfo) )
122
  {
123
  global $current_user;
124
  get_currentuserinfo();
@@ -277,6 +277,8 @@ class WPShortPixel {
277
  //return urls and paths to be used but other functions
278
  public function returnURLsAndPaths($itemDetails)
279
  {
 
 
280
  $imageIndex=0;
281
  $ID = $itemDetails->post_id;
282
  $imageURL = wp_get_attachment_url($ID);
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: 2.0.9
7
  * Author: ShortPixel
8
  * Author URI: https://shortpixel.com
9
  */
12
  require_once( ABSPATH . 'wp-admin/includes/image.php' );
13
  require_once( ABSPATH . 'wp-includes/pluggable.php' );
14
 
15
+ define('PLUGIN_VERSION', "2.0.9");
16
  define('SP_DEBUG', false);
17
  define('SP_LOG', false);
18
  define('SP_MAX_TIMEOUT', 10);
118
  if(get_option('wp-short-pixel-view-mode') === false)
119
  {
120
  add_option('wp-short-pixel-view-mode', 1, '', 'yes' );
121
+ if ( function_exists('get_currentuserinfo') )
122
  {
123
  global $current_user;
124
  get_currentuserinfo();
277
  //return urls and paths to be used but other functions
278
  public function returnURLsAndPaths($itemDetails)
279
  {
280
+ global $wpdb;
281
+
282
  $imageIndex=0;
283
  $ID = $itemDetails->post_id;
284
  $imageURL = wp_get_attachment_url($ID);