Version Description
- longer timeout for the API Key validation postback
Download this release
Release Info
| Developer | ShortPixel |
| Plugin | |
| Version | 3.1.5 |
| Comparing to | |
| See all releases | |
Code changes from version 3.1.4 to 3.1.5
- readme.txt +5 -1
- wp-shortpixel.php +5 -4
readme.txt
CHANGED
|
@@ -5,7 +5,7 @@ Tags: picture, optimization, image editor, pngout, upload speed, shortpixel, co
|
|
| 5 |
|
| 6 |
Requires at least: 3.0.1
|
| 7 |
Tested up to: 4.3
|
| 8 |
-
Stable tag: 3.1.
|
| 9 |
License: GPLv2 or later
|
| 10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
| 11 |
|
|
@@ -168,6 +168,10 @@ The ShortPixel team is here to help. <a href="https://shortpixel.com/contact">Co
|
|
| 168 |
|
| 169 |
== Changelog ==
|
| 170 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 171 |
= 3.1.4 =
|
| 172 |
|
| 173 |
* fix bug in bulk processing
|
| 5 |
|
| 6 |
Requires at least: 3.0.1
|
| 7 |
Tested up to: 4.3
|
| 8 |
+
Stable tag: 3.1.5
|
| 9 |
License: GPLv2 or later
|
| 10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
| 11 |
|
| 168 |
|
| 169 |
== Changelog ==
|
| 170 |
|
| 171 |
+
= 3.1.5 =
|
| 172 |
+
|
| 173 |
+
* longer timeout for the API Key validation postback
|
| 174 |
+
|
| 175 |
= 3.1.4 =
|
| 176 |
|
| 177 |
* fix bug in bulk processing
|
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 > ShortPixel</a> page on how to start optimizing your image library and make your website load faster.
|
| 6 |
-
* Version: 3.1.
|
| 7 |
* Author: ShortPixel
|
| 8 |
* Author URI: https://shortpixel.com
|
| 9 |
*/
|
|
@@ -21,8 +21,9 @@ define('SP_RESET_ON_ACTIVATE', false);
|
|
| 21 |
|
| 22 |
define('SP_AFFILIATE_CODE', '');
|
| 23 |
|
| 24 |
-
define('PLUGIN_VERSION', "3.1.
|
| 25 |
define('SP_MAX_TIMEOUT', 10);
|
|
|
|
| 26 |
define('SP_BACKUP', 'ShortpixelBackups');
|
| 27 |
define('SP_BACKUP_FOLDER', WP_CONTENT_DIR . DIRECTORY_SEPARATOR . 'uploads' . DIRECTORY_SEPARATOR . SP_BACKUP);
|
| 28 |
define('MAX_API_RETRIES', 50);
|
|
@@ -158,7 +159,6 @@ class WPShortPixel {
|
|
| 158 |
update_option( 'wp-short-pixel-quota-exceeded', 0);
|
| 159 |
delete_option( 'wp-short-pixel-protocol');
|
| 160 |
update_option( 'wp-short-pixel-bulk-ever-ran', 0);
|
| 161 |
-
delete_option( 'wp-short-pixel-bulk-last-status');
|
| 162 |
delete_option('wp-short-pixel-priorityQueue');
|
| 163 |
delete_option( 'wp-short-pixel-resize-images');
|
| 164 |
delete_option( 'wp-short-pixel-resize-width');
|
|
@@ -173,6 +173,7 @@ class WPShortPixel {
|
|
| 173 |
update_option('wp-short-pixel-activation-notice', true);
|
| 174 |
}
|
| 175 |
update_option( 'wp-short-pixel-activation-date', time());
|
|
|
|
| 176 |
}
|
| 177 |
|
| 178 |
public static function shortPixelDeactivatePlugin()//reset some params to avoid trouble for plugins that were activated/deactivated/activated
|
|
@@ -997,7 +998,7 @@ class WPShortPixel {
|
|
| 997 |
if(is_null($apiKey)) { $apiKey = $this->_apiKey; }
|
| 998 |
|
| 999 |
$requestURL = 'https://api.shortpixel.com/v2/api-status.php';
|
| 1000 |
-
$args = array('timeout'=>
|
| 1001 |
'sslverify' => false,
|
| 1002 |
'body' => array('key' => $apiKey)
|
| 1003 |
);
|
| 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 > ShortPixel</a> page on how to start optimizing your image library and make your website load faster.
|
| 6 |
+
* Version: 3.1.5
|
| 7 |
* Author: ShortPixel
|
| 8 |
* Author URI: https://shortpixel.com
|
| 9 |
*/
|
| 21 |
|
| 22 |
define('SP_AFFILIATE_CODE', '');
|
| 23 |
|
| 24 |
+
define('PLUGIN_VERSION', "3.1.5");
|
| 25 |
define('SP_MAX_TIMEOUT', 10);
|
| 26 |
+
define('SP_VALIDATE_MAX_TIMEOUT', 60);
|
| 27 |
define('SP_BACKUP', 'ShortpixelBackups');
|
| 28 |
define('SP_BACKUP_FOLDER', WP_CONTENT_DIR . DIRECTORY_SEPARATOR . 'uploads' . DIRECTORY_SEPARATOR . SP_BACKUP);
|
| 29 |
define('MAX_API_RETRIES', 50);
|
| 159 |
update_option( 'wp-short-pixel-quota-exceeded', 0);
|
| 160 |
delete_option( 'wp-short-pixel-protocol');
|
| 161 |
update_option( 'wp-short-pixel-bulk-ever-ran', 0);
|
|
|
|
| 162 |
delete_option('wp-short-pixel-priorityQueue');
|
| 163 |
delete_option( 'wp-short-pixel-resize-images');
|
| 164 |
delete_option( 'wp-short-pixel-resize-width');
|
| 173 |
update_option('wp-short-pixel-activation-notice', true);
|
| 174 |
}
|
| 175 |
update_option( 'wp-short-pixel-activation-date', time());
|
| 176 |
+
delete_option( 'wp-short-pixel-bulk-last-status');
|
| 177 |
}
|
| 178 |
|
| 179 |
public static function shortPixelDeactivatePlugin()//reset some params to avoid trouble for plugins that were activated/deactivated/activated
|
| 998 |
if(is_null($apiKey)) { $apiKey = $this->_apiKey; }
|
| 999 |
|
| 1000 |
$requestURL = 'https://api.shortpixel.com/v2/api-status.php';
|
| 1001 |
+
$args = array('timeout'=> SP_VALIDATE_MAX_TIMEOUT,
|
| 1002 |
'sslverify' => false,
|
| 1003 |
'body' => array('key' => $apiKey)
|
| 1004 |
);
|
