Imagify Image Optimizer - Version 1.4.7

Version Description

  • Bug Fix
    • Fix issue between Bulk Optimization & WP Engine. The query to get unoptimized images is limited to 2500 images to be able to use the Bulk Optimization on this hosting.
    • Fix SSL certificate problem: unable to get local issuer certificate
Download this release

Release Info

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

Code changes from version 1.4.6 to 1.4.7

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.6
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.6' );
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.7
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.7' );
21
  define( 'IMAGIFY_SLUG' , 'imagify' );
22
  define( 'IMAGIFY_SETTINGS_SLUG' , IMAGIFY_SLUG . '_settings' );
23
  define( 'IMAGIFY_WEB_MAIN' , 'https://imagify.io' );
inc/3rd-party/3rd-party.php CHANGED
@@ -2,4 +2,7 @@
2
  defined( 'ABSPATH' ) or die( 'Cheatin\' uh?' );
3
 
4
  require( IMAGIFY_3RD_PARTY_PATH . 'enable-media-replace.php' );
5
- require( IMAGIFY_3RD_PARTY_PATH . 'wp-retina-2x.php' );
 
 
 
2
  defined( 'ABSPATH' ) or die( 'Cheatin\' uh?' );
3
 
4
  require( IMAGIFY_3RD_PARTY_PATH . 'enable-media-replace.php' );
5
+ require( IMAGIFY_3RD_PARTY_PATH . 'wp-retina-2x.php' );
6
+
7
+ // Hosting
8
+ require( IMAGIFY_3RD_PARTY_PATH . 'hosting/wpengine.php' );
inc/3rd-party/hosting/wpengine.php ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ defined( 'ABSPATH' ) or die( 'Cheatin\' uh?' );
3
+
4
+ if ( class_exists( 'WpeCommon' ) ) :
5
+
6
+ /**
7
+ * Conflict with WP Engine: it seems that WP Engine limits SQL queries size.
8
+ *
9
+ * @since 1.4.7
10
+ * @author Jonathan Buttigieg
11
+ */
12
+ add_filter( 'imagify_unoptimized_attachment_limit', '_imagify_wengine_unoptimized_attachment_limit' );
13
+ function _imagify_wengine_unoptimized_attachment_limit() {
14
+ return 2500;
15
+ }
16
+
17
+ endif;
inc/api/imagify.php CHANGED
@@ -268,8 +268,7 @@ class Imagify {
268
  }
269
 
270
  try {
271
- $ch = curl_init();
272
- $is_ssl = ( isset( $_SERVER['HTTPS'] ) && ( 'on' == strtolower( $_SERVER['HTTPS'] ) || '1' == $_SERVER['HTTPS'] ) ) || ( isset( $_SERVER['SERVER_PORT'] ) && ( '443' == $_SERVER['SERVER_PORT'] ) );
273
 
274
  if ( 'POST' == $args['method'] ) {
275
  curl_setopt( $ch, CURLOPT_POST, true );
@@ -281,7 +280,8 @@ class Imagify {
281
  curl_setopt( $ch, CURLOPT_HTTPHEADER, $this->headers );
282
  curl_setopt( $ch, CURLOPT_TIMEOUT, $args['timeout'] );
283
  @curl_setopt( $ch, CURLOPT_FOLLOWLOCATION, true );
284
- curl_setopt( $ch, CURLOPT_SSL_VERIFYPEER, $is_ssl );
 
285
 
286
  $response = json_decode( curl_exec( $ch ) );
287
  $error = curl_error( $ch );
268
  }
269
 
270
  try {
271
+ $ch = curl_init();
 
272
 
273
  if ( 'POST' == $args['method'] ) {
274
  curl_setopt( $ch, CURLOPT_POST, true );
280
  curl_setopt( $ch, CURLOPT_HTTPHEADER, $this->headers );
281
  curl_setopt( $ch, CURLOPT_TIMEOUT, $args['timeout'] );
282
  @curl_setopt( $ch, CURLOPT_FOLLOWLOCATION, true );
283
+ curl_setopt( $ch, CURLOPT_SSL_VERIFYHOST, 0 );
284
+ curl_setopt( $ch, CURLOPT_SSL_VERIFYPEER, 0 );
285
 
286
  $response = json_decode( curl_exec( $ch ) );
287
  $error = curl_error( $ch );
readme.txt CHANGED
@@ -3,7 +3,7 @@ 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,6 +134,11 @@ When the plugin is disabled, your existing images remain optimized. Backups of t
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!
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.7
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.7 =
138
+ * Bug Fix
139
+ * Fix issue between Bulk Optimization & WP Engine. The query to get unoptimized images is limited to 2500 images to be able to use the Bulk Optimization on this hosting.
140
+ * Fix SSL certificate problem: unable to get local issuer certificate
141
+
142
  = 1.4.6 =
143
  * Bulk Optimization
144
  * 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!