ShortPixel Image Optimizer - Version 4.5.1

Version Description

  • fix readme
Download this release

Release Info

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

Code changes from version 4.5.0 to 4.5.1

Files changed (3) hide show
  1. class/wp-short-pixel.php +1 -0
  2. readme.txt +6 -2
  3. wp-shortpixel.php +2 -2
class/wp-short-pixel.php CHANGED
@@ -247,6 +247,7 @@ class WPShortPixel {
247
  }
248
 
249
  function shortPixelJS() {
 
250
  $screen = get_current_screen();
251
  if($screen->id == 'upload') {
252
  //output the comparer html
247
  }
248
 
249
  function shortPixelJS() {
250
+ require_once(ABSPATH . 'wp-admin/includes/screen.php');
251
  $screen = get_current_screen();
252
  if($screen->id == 'upload') {
253
  //output the comparer html
readme.txt CHANGED
@@ -3,10 +3,9 @@
3
  Contributors: ShortPixel
4
  Tags: compress, image, compression, optimize, image optimizer, image compression, resize, compress pdf, compress jpg, compress png, image compression
5
 
6
-
7
  Requires at least: 3.2.0
8
  Tested up to: 4.8
9
- Stable tag: 4.5.0
10
  License: GPLv2 or later
11
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
 
@@ -35,6 +34,7 @@ Make an instant <a rel="friend" href="http://shortpixel.com/image-compression-te
35
  * compress JPG, PNG, GIF (still or animated) images and also PDF documents
36
  * no file size limit
37
  * option to freely convert any JPEG, PNG or GIF (even animated ones!) to **WebP** for more Google love. <a rel="friend" href="http://blog.shortpixel.com/how-webp-images-can-speed-up-your-site/" target="_blank">How to enable WebP?</a>
 
38
  * compatible with WP Retina 2x - all **retina images** are automatically compressed. <a rel="friend" href="http://blog.shortpixel.com/how-to-use-optimized-retina-images-on-your-wordpress-site-for-best-user-experience-on-apple-devices/" target="_blank">How to benefit from Retina displays?</a>
39
  * optimize thumbnails as well as featured images
40
  * ability to optimize any image on your site including images in **NextGEN Gallery** and any other image gallery or slider
@@ -222,6 +222,10 @@ The ShortPixel team is here to help. <a href="https://shortpixel.com/contact">Co
222
 
223
  == Changelog ==
224
 
 
 
 
 
225
  = 4.5.0 =
226
 
227
  * replace img tags in front-end with picture tags, and include the webp images
3
  Contributors: ShortPixel
4
  Tags: compress, image, compression, optimize, image optimizer, image compression, resize, compress pdf, compress jpg, compress png, image compression
5
 
 
6
  Requires at least: 3.2.0
7
  Tested up to: 4.8
8
+ Stable tag: 4.5.1
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
34
  * compress JPG, PNG, GIF (still or animated) images and also PDF documents
35
  * no file size limit
36
  * option to freely convert any JPEG, PNG or GIF (even animated ones!) to **WebP** for more Google love. <a rel="friend" href="http://blog.shortpixel.com/how-webp-images-can-speed-up-your-site/" target="_blank">How to enable WebP?</a>
37
+ * option to include the generated WebP images into the front-end pages by using the &lt;picture&gt; tag instead of &lt;img&gt;
38
  * compatible with WP Retina 2x - all **retina images** are automatically compressed. <a rel="friend" href="http://blog.shortpixel.com/how-to-use-optimized-retina-images-on-your-wordpress-site-for-best-user-experience-on-apple-devices/" target="_blank">How to benefit from Retina displays?</a>
39
  * optimize thumbnails as well as featured images
40
  * ability to optimize any image on your site including images in **NextGEN Gallery** and any other image gallery or slider
222
 
223
  == Changelog ==
224
 
225
+ = 4.5.1 =
226
+
227
+ * fix readme
228
+
229
  = 4.5.0 =
230
 
231
  * replace img tags in front-end with picture tags, and include the webp images
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: 4.5.0
7
  * Author: ShortPixel
8
  * Author URI: https://shortpixel.com
9
  * Text Domain: shortpixel-image-optimiser
@@ -17,7 +17,7 @@ define('SHORTPIXEL_PLUGIN_FILE', __FILE__);
17
 
18
  define('SP_AFFILIATE_CODE', '');
19
 
20
- define('PLUGIN_VERSION', "4.5.0");
21
  define('SP_MAX_TIMEOUT', 10);
22
  define('SP_VALIDATE_MAX_TIMEOUT', 15);
23
  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: 4.5.1
7
  * Author: ShortPixel
8
  * Author URI: https://shortpixel.com
9
  * Text Domain: shortpixel-image-optimiser
17
 
18
  define('SP_AFFILIATE_CODE', '');
19
 
20
+ define('PLUGIN_VERSION', "4.5.1");
21
  define('SP_MAX_TIMEOUT', 10);
22
  define('SP_VALIDATE_MAX_TIMEOUT', 15);
23
  define('SP_BACKUP', 'ShortpixelBackups');