ShortPixel Image Optimizer - Version 4.1.2

Version Description

  • bulk slider fix
Download this release

Release Info

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

Code changes from version 4.1.1 to 4.1.2

class/db/shortpixel-nextgen-adapter.php CHANGED
@@ -3,7 +3,7 @@
3
  class ShortPixelNextGenAdapter {
4
  public static function getGalleries () {
5
  global $wpdb;
6
- return array_map(array('ShortPixelNextGenAdapter','path'), $wpdb->get_results("SELECT path FROM {$wpdb->prefix}ngg_gallery"));
7
  }
8
 
9
  public static function hasNextGen() {
@@ -33,7 +33,7 @@ class ShortPixelNextGenAdapter {
33
  public static function pathToAbsolute($item) {
34
  return str_replace(DIRECTORY_SEPARATOR.DIRECTORY_SEPARATOR, DIRECTORY_SEPARATOR, get_home_path() . $item);
35
  }
36
-
37
  public static function path($item) {
38
  return $item->path;
39
  }
3
  class ShortPixelNextGenAdapter {
4
  public static function getGalleries () {
5
  global $wpdb;
6
+ return array_map(array('ShortPixelNextGenAdapter','path'), $wpdb->get_results("SELECT path FROM {$wpdb->prefix}ngg_gallery"));
7
  }
8
 
9
  public static function hasNextGen() {
33
  public static function pathToAbsolute($item) {
34
  return str_replace(DIRECTORY_SEPARATOR.DIRECTORY_SEPARATOR, DIRECTORY_SEPARATOR, get_home_path() . $item);
35
  }
36
+
37
  public static function path($item) {
38
  return $item->path;
39
  }
class/model/shortpixel-folder.php CHANGED
@@ -194,7 +194,7 @@ class ShortPixelFolder extends ShortPixelEntity{
194
  function setTsUpdated($tsUpdated) {
195
  $this->tsUpdated = $tsUpdated;
196
  }
197
-
198
  /**
199
  * needed as callback
200
  * @param type $item
194
  function setTsUpdated($tsUpdated) {
195
  $this->tsUpdated = $tsUpdated;
196
  }
197
+
198
  /**
199
  * needed as callback
200
  * @param type $item
class/view/shortpixel_view.php CHANGED
@@ -197,7 +197,7 @@ class ShortPixelView {
197
  var js, fjs = d.getElementsByTagName(s)[0];
198
  if (d.getElementById(id)) return;
199
  js = d.createElement(s); js.id = id;
200
- js.src = "//connect.facebook.net/ro_RO/sdk.js#xfbml=1&version=v2.6";
201
  fjs.parentNode.insertBefore(js, fjs);
202
  }(document, 'script', 'facebook-jssdk'));
203
  </script>
197
  var js, fjs = d.getElementsByTagName(s)[0];
198
  if (d.getElementById(id)) return;
199
  js = d.createElement(s); js.id = id;
200
+ js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.6";
201
  fjs.parentNode.insertBefore(js, fjs);
202
  }(document, 'script', 'facebook-jssdk'));
203
  </script>
readme.txt CHANGED
@@ -5,7 +5,7 @@ Tags: image optimizer, image optimization, compress pdf, compress jpeg, compress
5
 
6
  Requires at least: 3.2.0
7
  Tested up to: 4.6
8
- Stable tag: 4.1.1
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -27,7 +27,7 @@ Make an instant <a rel="friend" href="http://shortpixel.com/image-compression-te
27
  * popular plugin with over 20,000 active installations according to WordPress
28
  * compress JPG, PNG, GIF (still or animated) images and also PDF documents
29
  * no file size limit
30
- * option to convert any JPEG, PNG or GIF (even animated ones!) to **WebP** for more Google love
31
  * compatible with WP Retina 2x - all **retina images** are automatically compressed
32
  * optimize thumbnails as well as featured images
33
  * ability to optimize any image on your site including images in **NextGEN Gallery** and any other image gallery or slider
@@ -58,13 +58,15 @@ ShortPixel comes with 100 free credits/month and additional credits can be bough
58
  Check out <a rel="friend" href="https://shortpixel.com/pricing" target="_blank">our prices</a>
59
 
60
  > **Testimonials:**
61
- > ★★★★★ **A Super Plugin works very well 62% reduction overall.**
62
- > ★★★★★ **The secret sauce for a WordPress website.**
63
- > ★★★★★ **A must have plugin, great support!**
64
- > ★★★★★ **Excellent Plugin! Even Better Customer Service!**
65
- > ★★★★★ **Great image compression, solid plugin, equally great support.**
 
66
  > [more testimonials](https://wordpress.org/support/plugin/shortpixel-image-optimiser/reviews/?filter=5)
67
 
 
68
  Help us spread a the word by recommending ShortPixel to your friends and collect 100 additional image credits for each referred sign up. 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>.
69
 
70
  **Get in touch!**
@@ -177,6 +179,10 @@ The ShortPixel team is here to help. <a href="https://shortpixel.com/contact">Co
177
 
178
  == Changelog ==
179
 
 
 
 
 
180
  = 4.1.1 =
181
 
182
  * settings fix
5
 
6
  Requires at least: 3.2.0
7
  Tested up to: 4.6
8
+ Stable tag: 4.1.2
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
27
  * popular plugin with over 20,000 active installations according to WordPress
28
  * compress JPG, PNG, GIF (still or animated) images and also PDF documents
29
  * no file size limit
30
+ * 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>
31
  * compatible with WP Retina 2x - all **retina images** are automatically compressed
32
  * optimize thumbnails as well as featured images
33
  * ability to optimize any image on your site including images in **NextGEN Gallery** and any other image gallery or slider
58
  Check out <a rel="friend" href="https://shortpixel.com/pricing" target="_blank">our prices</a>
59
 
60
  > **Testimonials:**
61
+ > ★★★★★ **A Super Plugin works very well 62% reduction overall.** [robertvarns](https://wordpress.org/support/topic/a-super-plugin-works-very-well-62-reduction-overall/)
62
+ > ★★★★★ **The secret sauce for a WordPress website.** [mark1mark](https://wordpress.org/support/topic/the-secret-sauce-for-a-wordpress-website/)
63
+ > ★★★★★ **A must have plugin, great support!** [ElColo13](https://wordpress.org/support/topic/a-must-have-plugin-great-support/)
64
+ > ★★★★★ **Excellent Plugin! Even Better Customer Service!** [scaliendo](https://wordpress.org/support/topic/great-plugin-great-support-508/)
65
+ > ★★★★★ **Great image compression, solid plugin, equally great support.** [matters1959](https://wordpress.org/support/topic/support-shortpixel-image-optimizer/)
66
+ >
67
  > [more testimonials](https://wordpress.org/support/plugin/shortpixel-image-optimiser/reviews/?filter=5)
68
 
69
+
70
  Help us spread a the word by recommending ShortPixel to your friends and collect 100 additional image credits for each referred sign up. 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>.
71
 
72
  **Get in touch!**
179
 
180
  == Changelog ==
181
 
182
+ = 4.1.2 =
183
+
184
+ * bulk slider fix
185
+
186
  = 4.1.1 =
187
 
188
  * settings fix
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.1.1
7
  * Author: ShortPixel
8
  * Author URI: https://shortpixel.com
9
  */
@@ -12,7 +12,7 @@ define('SP_RESET_ON_ACTIVATE', false); //if true TODO set false
12
 
13
  define('SP_AFFILIATE_CODE', '');
14
 
15
- define('PLUGIN_VERSION', "4.1.1");
16
  define('SP_MAX_TIMEOUT', 10);
17
  define('SP_VALIDATE_MAX_TIMEOUT', 15);
18
  define('SP_BACKUP', 'ShortpixelBackups');
@@ -679,7 +679,7 @@ class WPShortPixel {
679
  $bkThumb = $backupUrl . $urlBkPath . $thumb;
680
  }
681
  if(strlen($thumb)) {
682
- $uploadsUrl = content_url() . "/";
683
  $urlPath = ShortPixelMetaFacade::returnSubDir($meta->getPath(), ShortPixelMetaFacade::MEDIA_LIBRARY_TYPE);
684
  //$urlPath = implode("/", array_slice($filePath, 0, count($filePath) - 1));
685
  $thumb = $uploadsUrl . $urlPath . $thumb;
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.1.2
7
  * Author: ShortPixel
8
  * Author URI: https://shortpixel.com
9
  */
12
 
13
  define('SP_AFFILIATE_CODE', '');
14
 
15
+ define('PLUGIN_VERSION', "4.1.2");
16
  define('SP_MAX_TIMEOUT', 10);
17
  define('SP_VALIDATE_MAX_TIMEOUT', 15);
18
  define('SP_BACKUP', 'ShortpixelBackups');
679
  $bkThumb = $backupUrl . $urlBkPath . $thumb;
680
  }
681
  if(strlen($thumb)) {
682
+ $uploadsUrl = home_url() . '/';
683
  $urlPath = ShortPixelMetaFacade::returnSubDir($meta->getPath(), ShortPixelMetaFacade::MEDIA_LIBRARY_TYPE);
684
  //$urlPath = implode("/", array_slice($filePath, 0, count($filePath) - 1));
685
  $thumb = $uploadsUrl . $urlPath . $thumb;