ShortPixel Image Optimizer - Version 4.19.2

Version Description

Release date June 10th 2020 * Fixed a fatal error when specific notifications were active and the plugin wasn't updated through WordPress; * Language 0 new strings added, 0 updated, 0 fuzzied, and 0 obsoleted.

Download this release

Release Info

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

Code changes from version 4.19.1 to 4.19.2

build/shortpixel/notices/src/NoticeModel.php CHANGED
@@ -134,6 +134,11 @@ class NoticeModel //extends ShortPixelModel
134
  self::$icons[$type] = $icon;
135
  }
136
 
 
 
 
 
 
137
  public function getForDisplay()
138
  {
139
  $this->viewed = true;
@@ -143,6 +148,21 @@ class NoticeModel //extends ShortPixelModel
143
 
144
  if ($this->callback)
145
  {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
146
  $return = call_user_func($this->callback, $this);
147
  if ($return === false) // don't display is callback returns false explicitly.
148
  return;
134
  self::$icons[$type] = $icon;
135
  }
136
 
137
+ private function checkIncomplete($var)
138
+ {
139
+ return ($var instanceof \__PHP_Incomplete_Class);
140
+ }
141
+
142
  public function getForDisplay()
143
  {
144
  $this->viewed = true;
148
 
149
  if ($this->callback)
150
  {
151
+ if (is_array($this->callback))
152
+ {
153
+ foreach($this->callback as $part)
154
+ {
155
+ if ($this->checkIncomplete($part) === true)
156
+ {
157
+ return false;
158
+ }
159
+ }
160
+ } elseif (is_object($this->callback))
161
+ {
162
+ if ($this->checkIncomplete($part) === true)
163
+ return false;
164
+ }
165
+
166
  $return = call_user_func($this->callback, $this);
167
  if ($return === false) // don't display is callback returns false explicitly.
168
  return;
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: compressor, image, compression, optimize, image optimizer, image optimiser
4
  Requires at least: 3.2.0
5
  Tested up to: 5.4.1
6
  Requires PHP: 5.3
7
- Stable tag: 4.19.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -281,6 +281,12 @@ Hide the Cloudflare settings by defining these constants in wp-config.php:
281
 
282
  == Changelog ==
283
 
 
 
 
 
 
 
284
  = 4.19.1 =
285
 
286
  Release date June 9th 2020
4
  Requires at least: 3.2.0
5
  Tested up to: 5.4.1
6
  Requires PHP: 5.3
7
+ Stable tag: 4.19.2
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
281
 
282
  == Changelog ==
283
 
284
+ = 4.19.2 =
285
+
286
+ Release date June 10th 2020
287
+ * Fixed a fatal error when specific notifications were active and the plugin wasn't updated through WordPress;
288
+ * Language – 0 new strings added, 0 updated, 0 fuzzied, and 0 obsoleted.
289
+
290
  = 4.19.1 =
291
 
292
  Release date June 9th 2020
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-settings" target="_blank">Settings &gt; ShortPixel</a> page on how to start optimizing your image library and make your website load faster.
6
- * Version: 4.19.1
7
  * Author: ShortPixel
8
  * Author URI: https://shortpixel.com
9
  * Text Domain: shortpixel-image-optimiser
@@ -32,7 +32,7 @@ define('SHORTPIXEL_PLUGIN_DIR', __DIR__);
32
 
33
  //define('SHORTPIXEL_AFFILIATE_CODE', '');
34
 
35
- define('SHORTPIXEL_IMAGE_OPTIMISER_VERSION', "4.19.1");
36
  define('SHORTPIXEL_MAX_TIMEOUT', 10);
37
  define('SHORTPIXEL_VALIDATE_MAX_TIMEOUT', 15);
38
  define('SHORTPIXEL_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-settings" target="_blank">Settings &gt; ShortPixel</a> page on how to start optimizing your image library and make your website load faster.
6
+ * Version: 4.19.2
7
  * Author: ShortPixel
8
  * Author URI: https://shortpixel.com
9
  * Text Domain: shortpixel-image-optimiser
32
 
33
  //define('SHORTPIXEL_AFFILIATE_CODE', '');
34
 
35
+ define('SHORTPIXEL_IMAGE_OPTIMISER_VERSION', "4.19.2");
36
  define('SHORTPIXEL_MAX_TIMEOUT', 10);
37
  define('SHORTPIXEL_VALIDATE_MAX_TIMEOUT', 15);
38
  define('SHORTPIXEL_BACKUP', 'ShortpixelBackups');