Version Description
- 2019/11/15 =
- Fix: webp image not showing when using the
<picture>
method and the original<img/>
does not have asrcset
attribute. - Fix: a fatal error with WP Offload Media 2.3.
Download this release
Release Info
Developer | wp_media |
Plugin | Imagify Image Optimizer |
Version | 1.9.8.1 |
Comparing to | |
See all releases |
Code changes from version 1.9.8 to 1.9.8.1
- classes/Webp/Picture/Display.php +4 -0
- imagify.php +2 -2
- inc/3rd-party/amazon-s3-and-cloudfront/amazon-s3-and-cloudfront.php +10 -0
- package.json +1 -1
- readme.txt +6 -2
classes/Webp/Picture/Display.php
CHANGED
@@ -240,6 +240,10 @@ class Display {
|
|
240 |
}
|
241 |
}
|
242 |
|
|
|
|
|
|
|
|
|
243 |
$attributes[ $srcset_source ] = implode( ', ', $attributes[ $srcset_source ] );
|
244 |
|
245 |
foreach ( [ 'data-lazy-srcset', 'data-srcset', 'srcset' ] as $srcset_attr ) {
|
240 |
}
|
241 |
}
|
242 |
|
243 |
+
if ( empty( $attributes[ $srcset_source ] ) ) {
|
244 |
+
$attributes[ $srcset_source ][] = $image['src']['webp_url'];
|
245 |
+
}
|
246 |
+
|
247 |
$attributes[ $srcset_source ] = implode( ', ', $attributes[ $srcset_source ] );
|
248 |
|
249 |
foreach ( [ 'data-lazy-srcset', 'data-srcset', 'srcset' ] as $srcset_attr ) {
|
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 bandwidth using Imagify, the new most advanced image optimization tool.
|
6 |
-
* Version: 1.9.8
|
7 |
* Requires PHP: 5.4
|
8 |
* Author: WP Media
|
9 |
* Author URI: https://wp-media.me/
|
@@ -20,7 +20,7 @@
|
|
20 |
defined( 'ABSPATH' ) || die( 'Cheatin’ uh?' );
|
21 |
|
22 |
// Imagify defines.
|
23 |
-
define( 'IMAGIFY_VERSION', '1.9.8' );
|
24 |
define( 'IMAGIFY_SLUG', 'imagify' );
|
25 |
define( 'IMAGIFY_FILE', __FILE__ );
|
26 |
define( 'IMAGIFY_PATH', realpath( plugin_dir_path( IMAGIFY_FILE ) ) . '/' );
|
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 bandwidth using Imagify, the new most advanced image optimization tool.
|
6 |
+
* Version: 1.9.8.1
|
7 |
* Requires PHP: 5.4
|
8 |
* Author: WP Media
|
9 |
* Author URI: https://wp-media.me/
|
20 |
defined( 'ABSPATH' ) || die( 'Cheatin’ uh?' );
|
21 |
|
22 |
// Imagify defines.
|
23 |
+
define( 'IMAGIFY_VERSION', '1.9.8.1' );
|
24 |
define( 'IMAGIFY_SLUG', 'imagify' );
|
25 |
define( 'IMAGIFY_FILE', __FILE__ );
|
26 |
define( 'IMAGIFY_PATH', realpath( plugin_dir_path( IMAGIFY_FILE ) ) . '/' );
|
inc/3rd-party/amazon-s3-and-cloudfront/amazon-s3-and-cloudfront.php
CHANGED
@@ -23,6 +23,11 @@ function imagify_load_as3cf_compat() {
|
|
23 |
return false;
|
24 |
}
|
25 |
|
|
|
|
|
|
|
|
|
|
|
26 |
return true;
|
27 |
}
|
28 |
|
@@ -39,6 +44,11 @@ function imagify_load_as3cf_compat() {
|
|
39 |
return false;
|
40 |
}
|
41 |
|
|
|
|
|
|
|
|
|
|
|
42 |
return true;
|
43 |
}
|
44 |
|
23 |
return false;
|
24 |
}
|
25 |
|
26 |
+
if ( version_compare( $version, '2.3' ) >= 0 ) {
|
27 |
+
// A new version that removes a punlic method.
|
28 |
+
return false;
|
29 |
+
}
|
30 |
+
|
31 |
return true;
|
32 |
}
|
33 |
|
44 |
return false;
|
45 |
}
|
46 |
|
47 |
+
if ( version_compare( $version, '2.3' ) >= 0 ) {
|
48 |
+
// A new version that removes a punlic method.
|
49 |
+
return false;
|
50 |
+
}
|
51 |
+
|
52 |
return true;
|
53 |
}
|
54 |
|
package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
{
|
2 |
"name": "imagify",
|
3 |
"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.",
|
4 |
-
"version": "1.9.8",
|
5 |
"homepage": "https://wordpress.org/plugins/imagify/",
|
6 |
"license": "GPL-2.0",
|
7 |
"private": true,
|
1 |
{
|
2 |
"name": "imagify",
|
3 |
"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.",
|
4 |
+
"version": "1.9.8.1",
|
5 |
"homepage": "https://wordpress.org/plugins/imagify/",
|
6 |
"license": "GPL-2.0",
|
7 |
"private": true,
|
readme.txt
CHANGED
@@ -1,9 +1,9 @@
|
|
1 |
-
=== Imagify – WebP
|
2 |
Contributors: wp_media, GregLone
|
3 |
Tags: optimize images, images, optimize, performance, webp
|
4 |
Requires at least: 4.0.0
|
5 |
Tested up to: 5.3
|
6 |
-
Stable tag: 1.9.8
|
7 |
|
8 |
Optimize images in one click: reduce image file sizes, convert WebP, keep your images beautiful… and boost your loading time and your SEO!
|
9 |
|
@@ -153,6 +153,10 @@ When the plugin is disabled, your existing images remain optimized. Backups of t
|
|
153 |
4. Other Media Page
|
154 |
|
155 |
== Changelog ==
|
|
|
|
|
|
|
|
|
156 |
= 1.9.8 - 2019/11/11 =
|
157 |
* Improvement: compatibility with WordPress 5.3!
|
158 |
* New: among other things, WordPress 5.3 automatically resizes large images on upload, using a predefined threshold value that can be changed only by filter (no setting fields are provided). Imagify’s "Resize larger images" setting field is now used to tweak this threshold.
|
1 |
+
=== Imagify – Convert WebP, Images Compression and Optimization ===
|
2 |
Contributors: wp_media, GregLone
|
3 |
Tags: optimize images, images, optimize, performance, webp
|
4 |
Requires at least: 4.0.0
|
5 |
Tested up to: 5.3
|
6 |
+
Stable tag: 1.9.8.1
|
7 |
|
8 |
Optimize images in one click: reduce image file sizes, convert WebP, keep your images beautiful… and boost your loading time and your SEO!
|
9 |
|
153 |
4. Other Media Page
|
154 |
|
155 |
== Changelog ==
|
156 |
+
= 1.9.8.1 - 2019/11/15 =
|
157 |
+
* Fix: webp image not showing when using the `<picture>` method and the original `<img/>` does not have a `srcset` attribute.
|
158 |
+
* Fix: a fatal error with WP Offload Media 2.3.
|
159 |
+
|
160 |
= 1.9.8 - 2019/11/11 =
|
161 |
* Improvement: compatibility with WordPress 5.3!
|
162 |
* New: among other things, WordPress 5.3 automatically resizes large images on upload, using a predefined threshold value that can be changed only by filter (no setting fields are provided). Imagify’s "Resize larger images" setting field is now used to tweak this threshold.
|