diff --git a/imagify.php b/imagify.php index 37dc0bf96..ca807b108 100644 --- a/imagify.php +++ b/imagify.php @@ -3,7 +3,7 @@ * Plugin Name: Imagify * Plugin URI: https://wordpress.org/plugins/imagify/ * Description: Dramaticaly reduce image file sizes without losing quality, make your website load faster, boost your SEO and save money on your bandwidth using Imagify, the new most advanced image optimization tool. - * Version: 1.7.1.2 + * Version: 1.7.1.3 * Author: WP Media * Author URI: https://wp-media.me/ * Licence: GPLv2 @@ -17,7 +17,7 @@ defined( 'ABSPATH' ) || die( 'Cheatin\' uh?' ); // Imagify defines. -define( 'IMAGIFY_VERSION' , '1.7.1.2' ); +define( 'IMAGIFY_VERSION' , '1.7.1.3' ); define( 'IMAGIFY_SLUG' , 'imagify' ); define( 'IMAGIFY_FILE' , __FILE__ ); define( 'IMAGIFY_PATH' , realpath( plugin_dir_path( IMAGIFY_FILE ) ) . '/' ); diff --git a/inc/admin/upgrader.php b/inc/admin/upgrader.php index 0e0742470..6937397c4 100755 --- a/inc/admin/upgrader.php +++ b/inc/admin/upgrader.php @@ -317,7 +317,9 @@ function imagify_maybe_reset_opcache( $wp_upgrader, $hook_extra ) { $can_reset = false; } - if ( ! empty( ini_get( 'opcache.restrict_api' ) ) && strpos( __FILE__, ini_get( 'opcache.restrict_api' ) ) !== 0 ) { + $restrict_api = ini_get( 'opcache.restrict_api' ); + + if ( $restrict_api && strpos( __FILE__, $restrict_api ) !== 0 ) { $can_reset = false; } } diff --git a/package.json b/package.json index c6cc5882a..6c5a654fa 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "imagify", "description": "Imagify Image Optimizer. Dramatically reduce image file sizes without losing quality, make your website load faster, boost your SEO and save money on your bandwidth.", - "version": "1.7.1.2", + "version": "1.7.1.3", "homepage": "https://wordpress.org/plugins/imagify/", "license": "GPL-2.0", "private": true, diff --git a/readme.txt b/readme.txt index 27e5a20c1..c786c251d 100755 --- a/readme.txt +++ b/readme.txt @@ -3,7 +3,7 @@ Contributors: wp_media, GregLone Tags: compress image, images, performance, optimization, photos, upload, resize, gif, png, jpg, reduce image size, retina Requires at least: 3.7.0 Tested up to: 4.9.5 -Stable tag: 1.7.1.2 +Stable tag: 1.7.1.3 Dramatically reduce image file sizes without losing quality, make your website load faster, boost your SEO and save money on your bandwidth. @@ -138,6 +138,9 @@ When the plugin is disabled, your existing images remain optimized. Backups of t 4. Other Media Page == Changelog == += 1.7.1.3 - 2018/04/12 = +* Bug Fix: a fatal error with outdated versions of php. + = 1.7.1.2 - 2018/04/12 = * Improvement: reset OPcache after Imagify being updated. * Bug Fix: a fatal error upon Imagify update.