Imagify Image Optimizer - Version 1.4.6

Version Description

  • Bulk Optimization
    • Fix the "All your images have been optimized by Imagify" issue when images still need to be optimized. This issue occurred only since 1.4.5 for some users. Sorry for the inconvenience!
Download this release

Release Info

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

Code changes from version 1.4.5 to 1.4.6

Files changed (3) hide show
  1. imagify.php +2 -2
  2. inc/admin/ajax.php +5 -4
  3. readme.txt +6 -2
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.4.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.4.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.4.6
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.4.6' );
21
  define( 'IMAGIFY_SLUG' , 'imagify' );
22
  define( 'IMAGIFY_SETTINGS_SLUG' , IMAGIFY_SLUG . '_settings' );
23
  define( 'IMAGIFY_WEB_MAIN' , 'https://imagify.io' );
inc/admin/ajax.php CHANGED
@@ -197,15 +197,16 @@ function _do_wp_ajax_imagify_get_unoptimized_attachment_ids() {
197
  }
198
 
199
  // Get attachments filename
200
- $attachments_filename = $wpdb->get_col(
201
- "SELECT pm.meta_value
202
  FROM $wpdb->postmeta as pm
203
  WHERE pm.meta_key= '_wp_attached_file'
204
  AND pm.post_id IN ($sql_ids)
205
- ORDER BY pm.post_id DESC"
 
206
  );
207
 
208
- $attachments_filename = array_combine( $ids, $attachments_filename );
209
 
210
  // Get attachments data
211
  $attachments_data = $wpdb->get_results(
197
  }
198
 
199
  // Get attachments filename
200
+ $attachments_filename = $wpdb->get_results(
201
+ "SELECT pm.post_id as id, pm.meta_value as value
202
  FROM $wpdb->postmeta as pm
203
  WHERE pm.meta_key= '_wp_attached_file'
204
  AND pm.post_id IN ($sql_ids)
205
+ ORDER BY pm.post_id DESC"
206
+ , ARRAY_A
207
  );
208
 
209
+ $attachments_filename = imagify_query_results_combine( $ids, $attachments_filename );
210
 
211
  // Get attachments data
212
  $attachments_data = $wpdb->get_results(
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.4.2
6
- Stable tag: 1.4.5
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -134,6 +134,10 @@ When the plugin is disabled, your existing images remain optimized. Backups of t
134
 
135
  == Changelog ==
136
 
 
 
 
 
137
  = 1.4.5 =
138
  * Interface
139
  * Bulk Optimization: optimize all SQL queries and improve by 65% the process time \o/
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.4.6
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
134
 
135
  == Changelog ==
136
 
137
+ = 1.4.6 =
138
+ * Bulk Optimization
139
+ * Fix the "All your images have been optimized by Imagify" issue when images still need to be optimized. This issue occurred only since 1.4.5 for some users. Sorry for the inconvenience!
140
+
141
  = 1.4.5 =
142
  * Interface
143
  * Bulk Optimization: optimize all SQL queries and improve by 65% the process time \o/