Version Description
Release date: 27th November 2019 * Fix the infamous T_PAAMAYIM_NEKUDOTAYIM error on PHP 5.3 with WP Offload Media compat. module. * Language 0 new strings added, 0 updated, 0 fuzzied, and 0 obsoleted
Download this release
Release Info
Developer | ShortPixel |
Plugin | ShortPixel Image Optimizer |
Version | 4.15.1 |
Comparing to | |
See all releases |
Code changes from version 4.15.0 to 4.15.1
- class/external/gravityforms.php +2 -2
- class/external/wp-offload-media.php +3 -2
- readme.txt +7 -1
- wp-shortpixel.php +2 -2
class/external/gravityforms.php
CHANGED
@@ -21,7 +21,7 @@ class gravityForms
|
|
21 |
|
22 |
$shortPixelObj = wpSPIO()->getShortPixel();
|
23 |
|
24 |
-
if(!($folder = $
|
25 |
return;
|
26 |
}
|
27 |
if(strpos($value , '|:|')) {
|
@@ -32,7 +32,7 @@ class gravityForms
|
|
32 |
$uploadDir = wp_upload_dir();
|
33 |
$localPath = str_replace($uploadDir['baseurl'], SHORTPIXEL_UPLOADS_BASE, $value);
|
34 |
|
35 |
-
return $
|
36 |
}
|
37 |
|
38 |
} // class
|
21 |
|
22 |
$shortPixelObj = wpSPIO()->getShortPixel();
|
23 |
|
24 |
+
if(!($folder = $shortPixelObj->getSpMetaDao()->getFolder(SHORTPIXEL_UPLOADS_BASE . '/gravity_forms'))) {
|
25 |
return;
|
26 |
}
|
27 |
if(strpos($value , '|:|')) {
|
32 |
$uploadDir = wp_upload_dir();
|
33 |
$localPath = str_replace($uploadDir['baseurl'], SHORTPIXEL_UPLOADS_BASE, $value);
|
34 |
|
35 |
+
return $shortPixelObj->addPathToCustomFolder($localPath, $folder->getId(), 0);
|
36 |
}
|
37 |
|
38 |
} // class
|
class/external/wp-offload-media.php
CHANGED
@@ -154,8 +154,9 @@ class wpOffload
|
|
154 |
/** @return Returns S3Ofload MediaItem, or false when this does not exist */
|
155 |
protected function getItemById($id)
|
156 |
{
|
157 |
-
|
158 |
-
|
|
|
159 |
}
|
160 |
|
161 |
public function image_converted($id)
|
154 |
/** @return Returns S3Ofload MediaItem, or false when this does not exist */
|
155 |
protected function getItemById($id)
|
156 |
{
|
157 |
+
$clazz = $this->itemClassName;
|
158 |
+
$mediaItem = $clazz::get_by_source_id($id);
|
159 |
+
return $mediaItem;
|
160 |
}
|
161 |
|
162 |
public function image_converted($id)
|
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.3
|
6 |
Requires PHP: 5.3
|
7 |
-
Stable tag: 4.15.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -261,6 +261,12 @@ define("SHORTPIXEL_EXPERIMENTAL_SECURICACHE", true); // adds timestamps to URLS
|
|
261 |
|
262 |
== Changelog ==
|
263 |
|
|
|
|
|
|
|
|
|
|
|
|
|
264 |
= 4.15.0 =
|
265 |
|
266 |
Release date: 27th November 2019
|
4 |
Requires at least: 3.2.0
|
5 |
Tested up to: 5.3
|
6 |
Requires PHP: 5.3
|
7 |
+
Stable tag: 4.15.1
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
261 |
|
262 |
== Changelog ==
|
263 |
|
264 |
+
= 4.15.1 =
|
265 |
+
|
266 |
+
Release date: 27th November 2019
|
267 |
+
* Fix the infamous T_PAAMAYIM_NEKUDOTAYIM error on PHP 5.3 with WP Offload Media compat. module.
|
268 |
+
* Language – 0 new strings added, 0 updated, 0 fuzzied, and 0 obsoleted
|
269 |
+
|
270 |
= 4.15.0 =
|
271 |
|
272 |
Release date: 27th November 2019
|
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 > ShortPixel</a> page on how to start optimizing your image library and make your website load faster.
|
6 |
-
* Version: 4.15.
|
7 |
* Author: ShortPixel
|
8 |
* Author URI: https://shortpixel.com
|
9 |
* Text Domain: shortpixel-image-optimiser
|
@@ -19,7 +19,7 @@ define('SHORTPIXEL_PLUGIN_DIR', __DIR__);
|
|
19 |
|
20 |
//define('SHORTPIXEL_AFFILIATE_CODE', '');
|
21 |
|
22 |
-
define('SHORTPIXEL_IMAGE_OPTIMISER_VERSION', "4.15.
|
23 |
define('SHORTPIXEL_MAX_TIMEOUT', 10);
|
24 |
define('SHORTPIXEL_VALIDATE_MAX_TIMEOUT', 15);
|
25 |
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 > ShortPixel</a> page on how to start optimizing your image library and make your website load faster.
|
6 |
+
* Version: 4.15.1
|
7 |
* Author: ShortPixel
|
8 |
* Author URI: https://shortpixel.com
|
9 |
* Text Domain: shortpixel-image-optimiser
|
19 |
|
20 |
//define('SHORTPIXEL_AFFILIATE_CODE', '');
|
21 |
|
22 |
+
define('SHORTPIXEL_IMAGE_OPTIMISER_VERSION', "4.15.1");
|
23 |
define('SHORTPIXEL_MAX_TIMEOUT', 10);
|
24 |
define('SHORTPIXEL_VALIDATE_MAX_TIMEOUT', 15);
|
25 |
define('SHORTPIXEL_BACKUP', 'ShortpixelBackups');
|