reSmush.it Image Optimizer - Version 0.3.6

Version Description

  • Fix : cron multiple run issue.
Download this release

Release Info

Developer resmushit
Plugin Icon 128x128 reSmush.it Image Optimizer
Version 0.3.6
Comparing to
See all releases

Code changes from version 0.3.5 to 0.3.6

Files changed (3) hide show
  1. readme.txt +5 -2
  2. resmushit.php +5 -5
  3. resmushit.settings.php +1 -1
readme.txt CHANGED
@@ -1,9 +1,9 @@
1
- === reSmush.it Image Optimizer ===
2
  Contributors: resmushit
3
  Tags: image, optimizer, image optimization, resmush.it, smush, jpg, png, gif, optimization, compression, Compress, Images, Pictures, Reduce Image Size, Smush, Smush.it
4
  Requires at least: 4.0.0
5
  Tested up to: 5.4.1
6
- Stable tag: 0.3.5
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -74,6 +74,9 @@ Yes ! Absolutely free, the only restriction is to send images below 5MB.
74
 
75
  == Changelog ==
76
 
 
 
 
77
  = 0.3.5 =
78
  * New header image, new WP description for plugin page.
79
 
1
+ === reSmush.it : the only free Image Optimizer & compress plugin ===
2
  Contributors: resmushit
3
  Tags: image, optimizer, image optimization, resmush.it, smush, jpg, png, gif, optimization, compression, Compress, Images, Pictures, Reduce Image Size, Smush, Smush.it
4
  Requires at least: 4.0.0
5
  Tested up to: 5.4.1
6
+ Stable tag: 0.3.6
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
74
 
75
  == Changelog ==
76
 
77
+ = 0.3.6 =
78
+ * Fix : cron multiple run issue.
79
+
80
  = 0.3.5 =
81
  * New header image, new WP description for plugin page.
82
 
resmushit.php CHANGED
@@ -7,11 +7,11 @@
7
  * @copyright 2020 Resmush.it
8
  *
9
  * @wordpress-plugin
10
- * Plugin Name: reSmush.it : the only free Image Optimizer & compress plugin
11
  * Plugin URI: https://wordpress.org/plugins/resmushit-image-optimizer/
12
  * Description: Image Optimization API. Provides image size optimization
13
- * Version: 0.3.5
14
- * Timestamp: 2020.05.02
15
  * Author: reSmush.it
16
  * Author URI: https://resmush.it
17
  * Author: Charles Bourgeaux
@@ -337,8 +337,8 @@ if(!get_option('resmushit_cron') || get_option('resmushit_cron') === 0) {
337
  function resmushit_cron_process() {
338
  global $is_cron;
339
  $is_cron = TRUE;
340
-
341
- if(time() - get_option('resmushit_cron_lastrun') < RESMUSHIT_CRON_TIMEOUT) {
342
  rlog('Another CRON process is running, process aborted.', 'WARNING');
343
  return FALSE;
344
  }
7
  * @copyright 2020 Resmush.it
8
  *
9
  * @wordpress-plugin
10
+ * Plugin Name: reSmush.it Image Optimizer
11
  * Plugin URI: https://wordpress.org/plugins/resmushit-image-optimizer/
12
  * Description: Image Optimization API. Provides image size optimization
13
+ * Version: 0.3.6
14
+ * Timestamp: 2020.05.10
15
  * Author: reSmush.it
16
  * Author URI: https://resmush.it
17
  * Author: Charles Bourgeaux
337
  function resmushit_cron_process() {
338
  global $is_cron;
339
  $is_cron = TRUE;
340
+
341
+ if((time() - get_option('resmushit_cron_lastaction')) < RESMUSHIT_CRON_TIMEOUT) {
342
  rlog('Another CRON process is running, process aborted.', 'WARNING');
343
  return FALSE;
344
  }
resmushit.settings.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
 
3
  define('RESMUSHIT_ENDPOINT', 'http://api.resmush.it/');
4
- define('RESMUSHIT_VERSION', '0.3.5');
5
  define('RESMUSHIT_DEFAULT_QLTY', '92');
6
  define('RESMUSHIT_TIMEOUT', '10');
7
  define('RESMUSHIT_LOGS_PATH', 'resmushit.log');
1
  <?php
2
 
3
  define('RESMUSHIT_ENDPOINT', 'http://api.resmush.it/');
4
+ define('RESMUSHIT_VERSION', '0.3.6');
5
  define('RESMUSHIT_DEFAULT_QLTY', '92');
6
  define('RESMUSHIT_TIMEOUT', '10');
7
  define('RESMUSHIT_LOGS_PATH', 'resmushit.log');