Imagify Image Optimizer - Version 1.5.1

Version Description

  • Bug Fix
    • Thumbnail sizes in settings page aren't reset anymore on plugin update
    • Fix PHP Warning: Cannot unset offset in a non-array variable in /inc/functions/admin-stats.php on line 23
    • Fix PHP Warning: Invalid argument supplied for foreach() in /inc/functions/admin-stats.php on line 233
Download this release

Release Info

Developer wp_media
Plugin Icon 128x128 Imagify Image Optimizer
Version 1.5.1
Comparing to
See all releases

Code changes from version 1.5 to 1.5.1

imagify.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Imagify
4
  Plugin URI: https://wordpress.org/plugins/imagify/
5
  Description: Dramaticaly reduce image file sizes without losing quality, make your website load faster, boost your SEO and save money on your bandwith using Imagify, the new most advanced image optimization tool.
6
- Version: 1.5
7
  Author: WP Media
8
  Author URI: http://wp-media.me
9
  Licence: GPLv2
@@ -17,7 +17,7 @@ Copyright 2015 WP Media
17
  defined( 'ABSPATH' ) or die( 'Cheatin\' uh?' );
18
 
19
  // Imagify defines
20
- define( 'IMAGIFY_VERSION' , '1.5' );
21
  define( 'IMAGIFY_SLUG' , 'imagify' );
22
  define( 'IMAGIFY_SETTINGS_SLUG' , IMAGIFY_SLUG . '_settings' );
23
  define( 'IMAGIFY_WEB_MAIN' , 'https://imagify.io' );
3
  Plugin Name: Imagify
4
  Plugin URI: https://wordpress.org/plugins/imagify/
5
  Description: Dramaticaly reduce image file sizes without losing quality, make your website load faster, boost your SEO and save money on your bandwith using Imagify, the new most advanced image optimization tool.
6
+ Version: 1.5.1
7
  Author: WP Media
8
  Author URI: http://wp-media.me
9
  Licence: GPLv2
17
  defined( 'ABSPATH' ) or die( 'Cheatin\' uh?' );
18
 
19
  // Imagify defines
20
+ define( 'IMAGIFY_VERSION' , '1.5.1' );
21
  define( 'IMAGIFY_SLUG' , 'imagify' );
22
  define( 'IMAGIFY_SETTINGS_SLUG' , IMAGIFY_SLUG . '_settings' );
23
  define( 'IMAGIFY_WEB_MAIN' , 'https://imagify.io' );
inc/3rd-party/nextgen-gallery/nextgen-gallery.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  defined( 'ABSPATH' ) or die( 'Cheatin\' uh?' );
3
 
4
- if ( ! class_exists( 'C_NextGEN_Bootstrap' ) || ! get_site_option( 'ngg_options' ) ) {
5
  return;
6
  }
7
 
1
  <?php
2
  defined( 'ABSPATH' ) or die( 'Cheatin\' uh?' );
3
 
4
+ if ( ! class_exists( 'C_NextGEN_Bootstrap' ) || ! class_exists( 'Mixin' ) || ! get_site_option( 'ngg_options' ) ) {
5
  return;
6
  }
7
 
inc/admin/options.php CHANGED
@@ -33,9 +33,8 @@ function _imagify_register_setting() {
33
  add_filter( 'pre_update_option_' . IMAGIFY_SETTINGS_SLUG, '_imagify_pre_update_option', 10, 2 );
34
  function _imagify_pre_update_option( $value, $old_value ) {
35
  // Store all sizes even if one of them isn't checked
36
- $value['disallowed-sizes'] = array();
37
-
38
  if ( isset( $value['sizes'] ) ) {
 
39
  foreach( $value['sizes'] as $size_key => $size_value ) {
40
  if ( strpos( $size_key , '-hidden' ) ) {
41
  $key = str_replace( '-hidden', '', $size_key );
33
  add_filter( 'pre_update_option_' . IMAGIFY_SETTINGS_SLUG, '_imagify_pre_update_option', 10, 2 );
34
  function _imagify_pre_update_option( $value, $old_value ) {
35
  // Store all sizes even if one of them isn't checked
 
 
36
  if ( isset( $value['sizes'] ) ) {
37
+ $value['disallowed-sizes'] = array();
38
  foreach( $value['sizes'] as $size_key => $size_value ) {
39
  if ( strpos( $size_key , '-hidden' ) ) {
40
  $key = str_replace( '-hidden', '', $size_key );
inc/functions/admin-stats.php CHANGED
@@ -220,6 +220,10 @@ function imagify_count_saving_data( $key = '' ) {
220
  $count = 0;
221
 
222
  foreach( $attachments as $attachment_data ) {
 
 
 
 
223
  $stats_data = $attachment_data['stats'];
224
  $original_data = $attachment_data['sizes']['full'];
225
 
220
  $count = 0;
221
 
222
  foreach( $attachments as $attachment_data ) {
223
+ if ( ! $attachment_data ) {
224
+ continue;
225
+ }
226
+
227
  $stats_data = $attachment_data['stats'];
228
  $original_data = $attachment_data['sizes']['full'];
229
 
readme.txt CHANGED
@@ -2,8 +2,8 @@
2
  Contributors: wp_media
3
  Tags: compress image, images, performance, optimization, photos, upload, resize, gif, png, jpg, reduce image size, retina
4
  Requires at least: 3.7.0
5
- Tested up to: 4.5
6
- Stable tag: 1.5
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -47,7 +47,7 @@ With the backup option, you can change your mind whenever you want by restoring
47
 
48
  = Does Imagify is Free? =
49
 
50
- You can optimize for free 25mb of images (about 150 images) every month and you will receive a 75mb bonus upon registration.
51
 
52
  Need more? Have a look at our plans: <a href="https://imagify.io/pricing">https://imagify.io/pricing</a>
53
 
@@ -136,6 +136,12 @@ When the plugin is disabled, your existing images remain optimized. Backups of t
136
 
137
  == Changelog ==
138
 
 
 
 
 
 
 
139
  = 1.5 =
140
 
141
  * NEW Features:
2
  Contributors: wp_media
3
  Tags: compress image, images, performance, optimization, photos, upload, resize, gif, png, jpg, reduce image size, retina
4
  Requires at least: 3.7.0
5
+ Tested up to: 4.5.1
6
+ Stable tag: 1.5.1
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
47
 
48
  = Does Imagify is Free? =
49
 
50
+ You can optimize for free 25MB of images (about 250 images) every month and you will receive a 25MB bonus upon registration.
51
 
52
  Need more? Have a look at our plans: <a href="https://imagify.io/pricing">https://imagify.io/pricing</a>
53
 
136
 
137
  == Changelog ==
138
 
139
+ = 1.5.1 =
140
+ * Bug Fix
141
+ * Thumbnail sizes in settings page aren't reset anymore on plugin update
142
+ * Fix PHP Warning: Cannot unset offset in a non-array variable in /inc/functions/admin-stats.php on line 23
143
+ * Fix PHP Warning: Invalid argument supplied for foreach() in /inc/functions/admin-stats.php on line 233
144
+
145
  = 1.5 =
146
 
147
  * NEW Features: