Version Description
- fixed: syntax error due to trailing comma after last parameter in function call(s).
Download this release
Release Info
Developer | nosilver4u |
Plugin | EWWW Image Optimizer |
Version | 6.1.7 |
Comparing to | |
See all releases |
Code changes from version 6.1.6 to 6.1.7
- bulk.php +3 -2
- changelog.txt +4 -1
- common.php +2 -2
- ewww-image-optimizer.php +1 -1
- readme.txt +4 -1
- tests/bootstrap.php +3 -0
- tests/test-utility.php +8 -0
bulk.php
CHANGED
@@ -339,18 +339,19 @@ function ewww_image_optimizer_bulk_resize_warning_message() {
|
|
339 |
/* translators: 1: width in pixels, 2: height in pixels */
|
340 |
esc_html__( 'All images will be scaled to %1$d x %2$d.', 'ewww-image-optimizer' ),
|
341 |
(int) ewww_image_optimizer_get_option( 'ewww_image_optimizer_maxmediawidth' ),
|
342 |
-
(int) ewww_image_optimizer_get_option( 'ewww_image_optimizer_maxmediaheight' )
|
343 |
);
|
344 |
} else {
|
345 |
printf(
|
346 |
/* translators: 1: width in pixels, 2: height in pixels */
|
347 |
esc_html__( 'All images in the Media Library will be scaled to %1$d x %2$d.', 'ewww-image-optimizer' ),
|
348 |
(int) ewww_image_optimizer_get_option( 'ewww_image_optimizer_maxmediawidth' ),
|
349 |
-
(int) ewww_image_optimizer_get_option( 'ewww_image_optimizer_maxmediaheight' )
|
350 |
);
|
351 |
}
|
352 |
}
|
353 |
}
|
|
|
354 |
/**
|
355 |
* Outputs the status area and delay/force controls for the Bulk optimize page.
|
356 |
*/
|
339 |
/* translators: 1: width in pixels, 2: height in pixels */
|
340 |
esc_html__( 'All images will be scaled to %1$d x %2$d.', 'ewww-image-optimizer' ),
|
341 |
(int) ewww_image_optimizer_get_option( 'ewww_image_optimizer_maxmediawidth' ),
|
342 |
+
(int) ewww_image_optimizer_get_option( 'ewww_image_optimizer_maxmediaheight' )
|
343 |
);
|
344 |
} else {
|
345 |
printf(
|
346 |
/* translators: 1: width in pixels, 2: height in pixels */
|
347 |
esc_html__( 'All images in the Media Library will be scaled to %1$d x %2$d.', 'ewww-image-optimizer' ),
|
348 |
(int) ewww_image_optimizer_get_option( 'ewww_image_optimizer_maxmediawidth' ),
|
349 |
+
(int) ewww_image_optimizer_get_option( 'ewww_image_optimizer_maxmediaheight' )
|
350 |
);
|
351 |
}
|
352 |
}
|
353 |
}
|
354 |
+
|
355 |
/**
|
356 |
* Outputs the status area and delay/force controls for the Bulk optimize page.
|
357 |
*/
|
changelog.txt
CHANGED
@@ -1,9 +1,12 @@
|
|
|
|
|
|
|
|
1 |
= 6.1.6 =
|
2 |
* added: support for BuddyPress uploads via Vikinger theme.
|
3 |
* added: compatibility with Weglot.
|
4 |
* added: use 'img-crop' id/class, or data-img-crop attribute to force cropping with Easy IO + Lazy Load.
|
5 |
* changed: Resize Existing enabled by default for new installs.
|
6 |
-
*
|
7 |
* fixed: prevent Resize Detection from flagging SVG files.
|
8 |
|
9 |
= 6.1.5 =
|
1 |
+
= 6.1.7 =
|
2 |
+
* fixed: syntax error due to trailing comma after last parameter in function call(s).
|
3 |
+
|
4 |
= 6.1.6 =
|
5 |
* added: support for BuddyPress uploads via Vikinger theme.
|
6 |
* added: compatibility with Weglot.
|
7 |
* added: use 'img-crop' id/class, or data-img-crop attribute to force cropping with Easy IO + Lazy Load.
|
8 |
* changed: Resize Existing enabled by default for new installs.
|
9 |
+
* changed: Lazy Load JS moved to footer
|
10 |
* fixed: prevent Resize Detection from flagging SVG files.
|
11 |
|
12 |
= 6.1.5 =
|
common.php
CHANGED
@@ -14,7 +14,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
14 |
exit;
|
15 |
}
|
16 |
|
17 |
-
define( 'EWWW_IMAGE_OPTIMIZER_VERSION', '
|
18 |
|
19 |
// Initialize a couple globals.
|
20 |
$eio_debug = '';
|
@@ -1119,7 +1119,7 @@ function ewww_image_optimizer_admin_init() {
|
|
1119 |
add_action( 'admin_notices', 'ewww_image_optimizer_svgcleaner_installed' );
|
1120 |
add_action( 'network_admin_notices', 'ewww_image_optimizer_svgcleaner_installed' );
|
1121 |
}
|
1122 |
-
if ( ! defined( 'WP_CLI' ) || ! WP_CLI ) {
|
1123 |
ewww_image_optimizer_privacy_policy_content();
|
1124 |
ewww_image_optimizer_ajax_compat_check();
|
1125 |
}
|
14 |
exit;
|
15 |
}
|
16 |
|
17 |
+
define( 'EWWW_IMAGE_OPTIMIZER_VERSION', '617.0' );
|
18 |
|
19 |
// Initialize a couple globals.
|
20 |
$eio_debug = '';
|
1119 |
add_action( 'admin_notices', 'ewww_image_optimizer_svgcleaner_installed' );
|
1120 |
add_action( 'network_admin_notices', 'ewww_image_optimizer_svgcleaner_installed' );
|
1121 |
}
|
1122 |
+
if ( ! defined( 'EIO_PHPUNIT' ) && ( ! defined( 'WP_CLI' ) || ! WP_CLI ) ) {
|
1123 |
ewww_image_optimizer_privacy_policy_content();
|
1124 |
ewww_image_optimizer_ajax_compat_check();
|
1125 |
}
|
ewww-image-optimizer.php
CHANGED
@@ -13,7 +13,7 @@ Plugin Name: EWWW Image Optimizer
|
|
13 |
Plugin URI: https://wordpress.org/plugins/ewww-image-optimizer/
|
14 |
Description: Reduce file sizes for images within WordPress including NextGEN Gallery and GRAND FlAGallery. Uses jpegtran, optipng/pngout, and gifsicle.
|
15 |
Author: Exactly WWW
|
16 |
-
Version: 6.1.
|
17 |
Author URI: https://ewww.io/
|
18 |
License: GPLv3
|
19 |
*/
|
13 |
Plugin URI: https://wordpress.org/plugins/ewww-image-optimizer/
|
14 |
Description: Reduce file sizes for images within WordPress including NextGEN Gallery and GRAND FlAGallery. Uses jpegtran, optipng/pngout, and gifsicle.
|
15 |
Author: Exactly WWW
|
16 |
+
Version: 6.1.7
|
17 |
Author URI: https://ewww.io/
|
18 |
License: GPLv3
|
19 |
*/
|
readme.txt
CHANGED
@@ -5,7 +5,7 @@ Tags: optimize, image, convert, webp, resize, compress, lazy load, optimization,
|
|
5 |
Requires at least: 5.4
|
6 |
Tested up to: 5.7
|
7 |
Requires PHP: 7.1
|
8 |
-
Stable tag: 6.1.
|
9 |
License: GPLv3
|
10 |
|
11 |
Smaller Images, Faster Sites, Happier Visitors. Comprehensive image optimization that doesn't require a degree in rocket science.
|
@@ -132,6 +132,9 @@ That's not a question, but since I made it up, I'll answer it. See this resource
|
|
132 |
* Feature requests can be viewed and submitted on our [feedback portal](https://feedback.ewww.io/b/features)
|
133 |
* If you would like to help translate this plugin in your language, [join the team](https://translate.wordpress.org/projects/wp-plugins/ewww-image-optimizer/)
|
134 |
|
|
|
|
|
|
|
135 |
= 6.1.6 =
|
136 |
* added: support for BuddyPress uploads via Vikinger theme.
|
137 |
* added: compatibility with Weglot.
|
5 |
Requires at least: 5.4
|
6 |
Tested up to: 5.7
|
7 |
Requires PHP: 7.1
|
8 |
+
Stable tag: 6.1.7
|
9 |
License: GPLv3
|
10 |
|
11 |
Smaller Images, Faster Sites, Happier Visitors. Comprehensive image optimization that doesn't require a degree in rocket science.
|
132 |
* Feature requests can be viewed and submitted on our [feedback portal](https://feedback.ewww.io/b/features)
|
133 |
* If you would like to help translate this plugin in your language, [join the team](https://translate.wordpress.org/projects/wp-plugins/ewww-image-optimizer/)
|
134 |
|
135 |
+
= 6.1.7 =
|
136 |
+
* fixed: syntax error due to trailing comma after last parameter in function call(s).
|
137 |
+
|
138 |
= 6.1.6 =
|
139 |
* added: support for BuddyPress uploads via Vikinger theme.
|
140 |
* added: compatibility with Weglot.
|
tests/bootstrap.php
CHANGED
@@ -20,6 +20,9 @@ function _manually_load_plugin() {
|
|
20 |
require dirname( dirname( __FILE__ ) ) . '/ewww-image-optimizer.php';
|
21 |
}
|
22 |
tests_add_filter( 'muplugins_loaded', '_manually_load_plugin' );
|
|
|
|
|
|
|
23 |
|
24 |
// Start up the WP testing environment.
|
25 |
require $_tests_dir . '/includes/bootstrap.php';
|
20 |
require dirname( dirname( __FILE__ ) ) . '/ewww-image-optimizer.php';
|
21 |
}
|
22 |
tests_add_filter( 'muplugins_loaded', '_manually_load_plugin' );
|
23 |
+
if ( ! defined( 'EIO_PHPUNIT' ) ) {
|
24 |
+
define( 'EIO_PHPUNIT', true );
|
25 |
+
}
|
26 |
|
27 |
// Start up the WP testing environment.
|
28 |
require $_tests_dir . '/includes/bootstrap.php';
|
tests/test-utility.php
CHANGED
@@ -141,4 +141,12 @@ class EWWWIO_Utility_Tests extends WP_UnitTestCase {
|
|
141 |
$this->assertEquals( $range, $cf_ips[ $key ] );
|
142 |
}
|
143 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
144 |
}
|
141 |
$this->assertEquals( $range, $cf_ips[ $key ] );
|
142 |
}
|
143 |
}
|
144 |
+
|
145 |
+
/**
|
146 |
+
* Run syntax checks for requires in WP-Admin.
|
147 |
+
*/
|
148 |
+
function test_admin_init() {
|
149 |
+
ewww_image_optimizer_admin_init();
|
150 |
+
$this->assertTrue( true );
|
151 |
+
}
|
152 |
}
|