EWWW Image Optimizer - Version 6.5.1

Version Description

  • fixed: LQIP option not available on sub-domain multisite install unless Easy IO is active on site 1
  • fixed: API quota function doesn't handle expired status correctly
Download this release

Release Info

Developer nosilver4u
Plugin Icon 128x128 EWWW Image Optimizer
Version 6.5.1
Comparing to
See all releases

Code changes from version 6.5.0 to 6.5.1

Files changed (4) hide show
  1. changelog.txt +4 -0
  2. common.php +12 -9
  3. ewww-image-optimizer.php +1 -1
  4. readme.txt +5 -1
changelog.txt CHANGED
@@ -1,3 +1,7 @@
 
 
 
 
1
  = 6.5.0 =
2
  * added: Lazy Load and Easy IO support for multiple background images and mixing with gradients
3
  * changed: all Easy IO settings available to all plan levels
1
+ = 6.5.1 =
2
+ * fixed: LQIP option not available on sub-domain multisite install unless Easy IO is active on site 1
3
+ * fixed: API quota function doesn't handle expired status correctly
4
+
5
  = 6.5.0 =
6
  * added: Lazy Load and Easy IO support for multiple background images and mixing with gradients
7
  * changed: all Easy IO settings available to all plan levels
common.php CHANGED
@@ -14,7 +14,7 @@ if ( ! defined( 'ABSPATH' ) ) {
14
  exit;
15
  }
16
 
17
- define( 'EWWW_IMAGE_OPTIMIZER_VERSION', '650' );
18
 
19
  // Initialize a couple globals.
20
  $eio_debug = '';
@@ -4817,10 +4817,10 @@ function ewww_image_optimizer_exactdn_activate_ajax() {
4817
  * ExactDN class for parsing image urls and rewriting them.
4818
  */
4819
  require_once( EWWW_IMAGE_OPTIMIZER_PLUGIN_PATH . 'classes/class-exactdn.php' );
4820
- global $exactdn;
4821
- if ( $exactdn->get_exactdn_domain() ) {
4822
- die( wp_json_encode( array( 'success' => esc_html__( 'Easy IO setup and verification is complete.', 'ewww-image-optimizer' ) ) ) );
4823
- }
4824
  }
4825
  global $exactdn_activate_error;
4826
  if ( empty( $exactdn_activate_error ) ) {
@@ -5310,6 +5310,9 @@ function ewww_image_optimizer_cloud_quota( $raw = false ) {
5310
  if ( ! is_array( $quota ) ) {
5311
  return '';
5312
  }
 
 
 
5313
  ewwwio_memory( __FUNCTION__ );
5314
  if ( $raw ) {
5315
  return $quota;
@@ -11655,7 +11658,7 @@ function ewww_image_optimizer_intro_wizard() {
11655
  </p>
11656
  <?php if ( ! $no_tracking ) : ?>
11657
  <p>
11658
- <input type='checkbox' id='ewww_image_optimizer_allow_tracking' name='ewww_image_optimizer_allow_tracking' value='true' checked />
11659
  <label for='ewww_image_optimizer_allow_tracking'><?php esc_html_e( 'Anonymous Reporting', 'ewww-image-optimizer' ); ?></label>
11660
  <span><?php ewwwio_help_link( 'https://docs.ewww.io/article/23-usage-tracking', '591f3a8e2c7d3a057f893d91' ); ?></span><br>
11661
  <span class='description'><?php esc_html_e( 'Send anonymized usage data to help make the plugin better. Opt-in and get a 10% discount code.', 'ewww-image-optimizer' ); ?></span>
@@ -12426,9 +12429,9 @@ function ewww_image_optimizer_options( $network = 'singlesite' ) {
12426
  $exactdn_los_id = $exactdn_enabled ? 'exactdn_lossy_disabled' : 'exactdn_lossy';
12427
  $exactdn_los_dis = ! $exactdn_enabled;
12428
  $eio_exclude_paths = ewww_image_optimizer_get_option( 'exactdn_exclude' ) ? implode( "\n", ewww_image_optimizer_get_option( 'exactdn_exclude' ) ) : '';
12429
- $lqip_che = is_object( $exactdn ) && ewww_image_optimizer_get_option( 'ewww_image_optimizer_use_lqip' );
12430
- $lqip_id = ! $exactdn_enabled ? 'ewww_image_optimizer_use_lqip_disabled' : 'ewww_image_optimizer_use_lqip';
12431
- $lqip_dis = ! $exactdn_enabled;
12432
  $ll_exclude_paths = ewww_image_optimizer_get_option( 'ewww_image_optimizer_ll_exclude' ) ? implode( "\n", ewww_image_optimizer_get_option( 'ewww_image_optimizer_ll_exclude' ) ) : '';
12433
  $current_jpeg_quality = apply_filters( 'jpeg_quality', 82, 'image_resize' );
12434
  $webp_php_rewriting = ewww_image_optimizer_get_option( 'ewww_image_optimizer_webp_for_cdn' ) || ewww_image_optimizer_get_option( 'ewww_image_optimizer_picture_webp' );
14
  exit;
15
  }
16
 
17
+ define( 'EWWW_IMAGE_OPTIMIZER_VERSION', '651' );
18
 
19
  // Initialize a couple globals.
20
  $eio_debug = '';
4817
  * ExactDN class for parsing image urls and rewriting them.
4818
  */
4819
  require_once( EWWW_IMAGE_OPTIMIZER_PLUGIN_PATH . 'classes/class-exactdn.php' );
4820
+ }
4821
+ global $exactdn;
4822
+ if ( $exactdn->get_exactdn_domain() ) {
4823
+ die( wp_json_encode( array( 'success' => esc_html__( 'Easy IO setup and verification is complete.', 'ewww-image-optimizer' ) ) ) );
4824
  }
4825
  global $exactdn_activate_error;
4826
  if ( empty( $exactdn_activate_error ) ) {
5310
  if ( ! is_array( $quota ) ) {
5311
  return '';
5312
  }
5313
+ if ( ! empty( $quota['status'] ) && 'expired' === $quota['status'] ) {
5314
+ return '';
5315
+ }
5316
  ewwwio_memory( __FUNCTION__ );
5317
  if ( $raw ) {
5318
  return $quota;
11658
  </p>
11659
  <?php if ( ! $no_tracking ) : ?>
11660
  <p>
11661
+ <input type='checkbox' id='ewww_image_optimizer_allow_tracking' name='ewww_image_optimizer_allow_tracking' value='true' />
11662
  <label for='ewww_image_optimizer_allow_tracking'><?php esc_html_e( 'Anonymous Reporting', 'ewww-image-optimizer' ); ?></label>
11663
  <span><?php ewwwio_help_link( 'https://docs.ewww.io/article/23-usage-tracking', '591f3a8e2c7d3a057f893d91' ); ?></span><br>
11664
  <span class='description'><?php esc_html_e( 'Send anonymized usage data to help make the plugin better. Opt-in and get a 10% discount code.', 'ewww-image-optimizer' ); ?></span>
12429
  $exactdn_los_id = $exactdn_enabled ? 'exactdn_lossy_disabled' : 'exactdn_lossy';
12430
  $exactdn_los_dis = ! $exactdn_enabled;
12431
  $eio_exclude_paths = ewww_image_optimizer_get_option( 'exactdn_exclude' ) ? implode( "\n", ewww_image_optimizer_get_option( 'exactdn_exclude' ) ) : '';
12432
+ $lqip_che = ( ( is_multisite() && is_network_admin() ) || is_object( $exactdn ) ) && ewww_image_optimizer_get_option( 'ewww_image_optimizer_use_lqip' );
12433
+ $lqip_id = ! is_network_admin() && ! $exactdn_enabled ? 'ewww_image_optimizer_use_lqip_disabled' : 'ewww_image_optimizer_use_lqip';
12434
+ $lqip_dis = ! is_network_admin() && ! $exactdn_enabled;
12435
  $ll_exclude_paths = ewww_image_optimizer_get_option( 'ewww_image_optimizer_ll_exclude' ) ? implode( "\n", ewww_image_optimizer_get_option( 'ewww_image_optimizer_ll_exclude' ) ) : '';
12436
  $current_jpeg_quality = apply_filters( 'jpeg_quality', 82, 'image_resize' );
12437
  $webp_php_rewriting = ewww_image_optimizer_get_option( 'ewww_image_optimizer_webp_for_cdn' ) || ewww_image_optimizer_get_option( 'ewww_image_optimizer_picture_webp' );
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.5.0
17
  Requires at least: 5.6
18
  Requires PHP: 7.2
19
  Author URI: https://ewww.io/
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.5.1
17
  Requires at least: 5.6
18
  Requires PHP: 7.2
19
  Author URI: https://ewww.io/
readme.txt CHANGED
@@ -5,7 +5,7 @@ Tags: optimize, image, convert, webp, resize, compress, lazy load, optimization,
5
  Requires at least: 5.6
6
  Tested up to: 5.9
7
  Requires PHP: 7.2
8
- Stable tag: 6.5.0
9
  License: GPLv3
10
 
11
  Smaller Images, Faster Sites, Happier Visitors. Comprehensive image optimization that doesn't require a degree in rocket science.
@@ -137,6 +137,10 @@ That's not a question, but since I made it up, I'll answer it. See this resource
137
  * Feature requests can be viewed and submitted on our [feedback portal](https://feedback.ewww.io/b/features)
138
  * 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/)
139
 
 
 
 
 
140
  = 6.5.0 =
141
  * added: Lazy Load and Easy IO support for multiple background images and mixing with gradients
142
  * changed: all Easy IO settings available to all plan levels
5
  Requires at least: 5.6
6
  Tested up to: 5.9
7
  Requires PHP: 7.2
8
+ Stable tag: 6.5.1
9
  License: GPLv3
10
 
11
  Smaller Images, Faster Sites, Happier Visitors. Comprehensive image optimization that doesn't require a degree in rocket science.
137
  * Feature requests can be viewed and submitted on our [feedback portal](https://feedback.ewww.io/b/features)
138
  * 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/)
139
 
140
+ = 6.5.1 =
141
+ * fixed: LQIP option not available on sub-domain multisite install unless Easy IO is active on site 1
142
+ * fixed: API quota function doesn't handle expired status correctly
143
+
144
  = 6.5.0 =
145
  * added: Lazy Load and Easy IO support for multiple background images and mixing with gradients
146
  * changed: all Easy IO settings available to all plan levels