reSmush.it Image Optimizer - Version 0.3.12

Version Description

  • Fix : Default value assignment
  • Test on WP 5.7.1
Download this release

Release Info

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

Code changes from version 0.3.11 to 0.3.12

Files changed (3) hide show
  1. readme.txt +7 -3
  2. resmushit.php +11 -11
  3. resmushit.settings.php +1 -1
readme.txt CHANGED
@@ -2,12 +2,12 @@
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.5.1
6
- Stable tag: 0.3.11
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
10
- The FREE Image Optimizer which will compress your pictures and improve your SEO & performances by using reSmush.it, the 8 billion images API optimizer.
11
 
12
  == Description ==
13
 
@@ -76,6 +76,10 @@ Yes ! Absolutely free, the only restriction is to send images below 5MB.
76
 
77
  == Changelog ==
78
 
 
 
 
 
79
  = 0.3.11 =
80
  * Fix : Optimize button not working when creating a new post
81
  * Fix : Default value of variables incorrectly initialized
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.7.1
6
+ Stable tag: 0.3.12
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
10
+ The FREE Image Optimizer which will compress your pictures and improve your SEO & performances by using reSmush.it, the 10+ billion images API optimizer.
11
 
12
  == Description ==
13
 
76
 
77
  == Changelog ==
78
 
79
+ = 0.3.12 =
80
+ * Fix : Default value assignment
81
+ * Test on WP 5.7.1
82
+
83
  = 0.3.11 =
84
  * Fix : Optimize button not working when creating a new post
85
  * Fix : Default value of variables incorrectly initialized
resmushit.php CHANGED
@@ -4,14 +4,14 @@
4
  * @author Charles Bourgeaux <hello@resmush.it>
5
  * @license GPL-2.0+
6
  * @link http://www.resmush.it
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.11
14
- * Timestamp: 2020.09.26
15
  * Author: reSmush.it
16
  * Author URI: https://resmush.it
17
  * Author: Charles Bourgeaux
@@ -55,21 +55,21 @@ function resmushit_activate() {
55
  update_option( 'resmushit_on_upload', '1' );
56
  if(get_option('resmushit_statistics') === false)
57
  update_option( 'resmushit_statistics', '1' );
58
- if(get_option('resmushit_total_optimized') === false)
59
  update_option( 'resmushit_total_optimized', '0' );
60
- if(get_option('resmushit_cron') === false)
61
  update_option( 'resmushit_cron', 0 );
62
- if(get_option('resmushit_cron_lastaction') === false)
63
  update_option( 'resmushit_cron_lastaction', 0 );
64
- if(get_option('resmushit_cron_lastrun') === false)
65
  update_option( 'resmushit_cron_lastrun', 0 );
66
- if(get_option('resmushit_cron_firstactivation') === false)
67
  update_option( 'resmushit_cron_firstactivation', 0 );
68
- if(get_option('resmushit_preserve_exif') === false)
69
  update_option( 'resmushit_preserve_exif', 0 );
70
- if(get_option('resmushit_remove_unsmushed') === false)
71
  update_option( 'resmushit_remove_unsmushed', 0 );
72
- if(get_option('resmushit_has_no_backup_files') === false)
73
  update_option( 'resmushit_has_no_backup_files', 0 );
74
  }
75
  }
4
  * @author Charles Bourgeaux <hello@resmush.it>
5
  * @license GPL-2.0+
6
  * @link http://www.resmush.it
7
+ * @copyright 2021 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.12
14
+ * Timestamp: 2021.05.02
15
  * Author: reSmush.it
16
  * Author URI: https://resmush.it
17
  * Author: Charles Bourgeaux
55
  update_option( 'resmushit_on_upload', '1' );
56
  if(get_option('resmushit_statistics') === false)
57
  update_option( 'resmushit_statistics', '1' );
58
+ if(get_option('resmushit_total_optimized') === false || get_option('resmushit_total_optimized') == "")
59
  update_option( 'resmushit_total_optimized', '0' );
60
+ if(get_option('resmushit_cron') === false || get_option('resmushit_cron') == "")
61
  update_option( 'resmushit_cron', 0 );
62
+ if(get_option('resmushit_cron_lastaction') === false || get_option('resmushit_cron_lastaction') == "")
63
  update_option( 'resmushit_cron_lastaction', 0 );
64
+ if(get_option('resmushit_cron_lastrun') === false || get_option('resmushit_cron_lastrun') == "")
65
  update_option( 'resmushit_cron_lastrun', 0 );
66
+ if(get_option('resmushit_cron_firstactivation') === false || get_option('resmushit_cron_firstactivation') == "")
67
  update_option( 'resmushit_cron_firstactivation', 0 );
68
+ if(get_option('resmushit_preserve_exif') === false || get_option('resmushit_preserve_exif') == "")
69
  update_option( 'resmushit_preserve_exif', 0 );
70
+ if(get_option('resmushit_remove_unsmushed') === false || get_option('resmushit_remove_unsmushed') == "")
71
  update_option( 'resmushit_remove_unsmushed', 0 );
72
+ if(get_option('resmushit_has_no_backup_files') === false || get_option('resmushit_has_no_backup_files') == "")
73
  update_option( 'resmushit_has_no_backup_files', 0 );
74
  }
75
  }
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.11');
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.12');
5
  define('RESMUSHIT_DEFAULT_QLTY', '92');
6
  define('RESMUSHIT_TIMEOUT', '10');
7
  define('RESMUSHIT_LOGS_PATH', 'resmushit.log');