Image optimization & Lazy Load by Optimole - Version 2.5.1

Version Description

Download this release

Release Info

Developer optimole
Plugin Icon 128x128 Image optimization & Lazy Load by Optimole
Version 2.5.1
Comparing to
See all releases

Code changes from version 2.5.0 to 2.5.1

CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
 
 
 
 
1
  #### [Version 2.5.0](https://github.com/Codeinwp/optimole-wp/compare/v2.4.2...v2.5.0) (2020-08-25)
2
 
3
  #### Features
1
+ ##### [Version 2.5.1](https://github.com/Codeinwp/optimole-wp/compare/v2.5.0...v2.5.1) (2020-08-26)
2
+
3
+ * Fix small bug between native lazyload compatibility and caching plugins
4
+
5
  #### [Version 2.5.0](https://github.com/Codeinwp/optimole-wp/compare/v2.4.2...v2.5.0) (2020-08-25)
6
 
7
  #### Features
inc/admin.php CHANGED
@@ -177,7 +177,7 @@ class Optml_Admin {
177
  $native_lazy_enabled = ( $this->settings->get( 'native_lazyload' ) === 'enabled' );
178
  $output = sprintf(
179
  '
180
- <style id="optml_lazyload_image_blur_style" type="text/css">
181
  img[data-opt-src]:not([data-opt-lazy-loaded]) {
182
  transition: .2s filter linear, .2s opacity linear, .2s border-radius linear;
183
  -webkit-transition: .2s filter linear, .2s opacity linear, .2s border-radius linear;
@@ -236,8 +236,6 @@ class Optml_Admin {
236
  img.src = img.dataset.optSrc;
237
  delete img.dataset.optSrc;
238
  });
239
- let optmlBlurStyle = document.getElementById("optml_lazyload_image_blur_style");
240
- optmlBlurStyle.parentNode.removeChild(optmlBlurStyle);
241
  }
242
  } );
243
  </script>',
177
  $native_lazy_enabled = ( $this->settings->get( 'native_lazyload' ) === 'enabled' );
178
  $output = sprintf(
179
  '
180
+ <style type="text/css">
181
  img[data-opt-src]:not([data-opt-lazy-loaded]) {
182
  transition: .2s filter linear, .2s opacity linear, .2s border-radius linear;
183
  -webkit-transition: .2s filter linear, .2s opacity linear, .2s border-radius linear;
236
  img.src = img.dataset.optSrc;
237
  delete img.dataset.optSrc;
238
  });
 
 
239
  }
240
  } );
241
  </script>',
optimole-wp.php CHANGED
@@ -2,7 +2,7 @@
2
  /**
3
  * Plugin Name: Image optimization service by Optimole
4
  * Description: Complete handling of your website images.
5
- * Version: 2.5.0
6
  * Author: Optimole
7
  * Author URI: https://optimole.com
8
  * License: GPL-2.0+
@@ -77,7 +77,7 @@ function optml() {
77
  define( 'OPTML_JS_CDN', 'd5jmkjjpb7yfg.cloudfront.net' );
78
  }
79
  define( 'OPTML_PATH', plugin_dir_path( __FILE__ ) );
80
- define( 'OPTML_VERSION', '2.5.0' );
81
  define( 'OPTML_NAMESPACE', 'optml' );
82
  define( 'OPTML_BASEFILE', __FILE__ );
83
  // Fallback for old PHP versions when this constant is not defined.
2
  /**
3
  * Plugin Name: Image optimization service by Optimole
4
  * Description: Complete handling of your website images.
5
+ * Version: 2.5.1
6
  * Author: Optimole
7
  * Author URI: https://optimole.com
8
  * License: GPL-2.0+
77
  define( 'OPTML_JS_CDN', 'd5jmkjjpb7yfg.cloudfront.net' );
78
  }
79
  define( 'OPTML_PATH', plugin_dir_path( __FILE__ ) );
80
+ define( 'OPTML_VERSION', '2.5.1' );
81
  define( 'OPTML_NAMESPACE', 'optml' );
82
  define( 'OPTML_BASEFILE', __FILE__ );
83
  // Fallback for old PHP versions when this constant is not defined.
readme.txt CHANGED
@@ -1,9 +1,9 @@
1
  === Image optimization & Lazy Load by Optimole ===
2
  Contributors: optimole
3
- Tags: image optimization, convert webp, responsive images, lazy load, images, optimization, performance, photos
4
  Requires at least: 4.7
5
- Tested up to: 5.4
6
- Requires PHP: 5.5
7
  License: GPLv3
8
  License URI: https://www.gnu.org/licenses/gpl-3.0.en.html
9
 
@@ -89,6 +89,13 @@ Premium users will be able to optimize images for more than 25k monthly active u
89
 
90
  == Changelog ==
91
 
 
 
 
 
 
 
 
92
  #### [Version 2.5.0](https://github.com/Codeinwp/optimole-wp/compare/v2.4.2...v2.5.0) (2020-08-25)
93
 
94
  #### Features
@@ -97,7 +104,7 @@ Premium users will be able to optimize images for more than 25k monthly active u
97
  - Adds support for CSS classes in the optimizations exclusion filters
98
  - Allow local JS serving for the lazyload library using configurable constant
99
 
100
- ### Fixes
101
  - improve settings description texts
102
  - improve texts for the diagnosis popup report
103
  - adds compatibility with WordPress 5.5
1
  === Image optimization & Lazy Load by Optimole ===
2
  Contributors: optimole
3
+ Tags: image optimization, convert webp, responsive images, lazy load, images, optimization, performance, photos, free cdn
4
  Requires at least: 4.7
5
+ Tested up to: 5.5
6
+ Requires PHP: 5.4
7
  License: GPLv3
8
  License URI: https://www.gnu.org/licenses/gpl-3.0.en.html
9
 
89
 
90
  == Changelog ==
91
 
92
+ ##### [Version 2.5.1](https://github.com/Codeinwp/optimole-wp/compare/v2.5.0...v2.5.1) (2020-08-26)
93
+
94
+ * Fix small bug between native lazyload compatibility and caching plugins
95
+
96
+
97
+
98
+
99
  #### [Version 2.5.0](https://github.com/Codeinwp/optimole-wp/compare/v2.4.2...v2.5.0) (2020-08-25)
100
 
101
  #### Features
104
  - Adds support for CSS classes in the optimizations exclusion filters
105
  - Allow local JS serving for the lazyload library using configurable constant
106
 
107
+ #### Fixes
108
  - improve settings description texts
109
  - improve texts for the diagnosis popup report
110
  - adds compatibility with WordPress 5.5
vendor/autoload.php CHANGED
@@ -4,4 +4,4 @@
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
- return ComposerAutoloaderInita65219480e06d3a387acc6e0e78b3424::getLoader();
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
+ return ComposerAutoloaderInitcece4ff258dfa370529d92aa8c5b835f::getLoader();
vendor/composer/autoload_real.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
- class ComposerAutoloaderInita65219480e06d3a387acc6e0e78b3424
6
  {
7
  private static $loader;
8
 
@@ -22,15 +22,15 @@ class ComposerAutoloaderInita65219480e06d3a387acc6e0e78b3424
22
  return self::$loader;
23
  }
24
 
25
- spl_autoload_register(array('ComposerAutoloaderInita65219480e06d3a387acc6e0e78b3424', 'loadClassLoader'), true, true);
26
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
27
- spl_autoload_unregister(array('ComposerAutoloaderInita65219480e06d3a387acc6e0e78b3424', 'loadClassLoader'));
28
 
29
  $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
30
  if ($useStaticLoader) {
31
  require_once __DIR__ . '/autoload_static.php';
32
 
33
- call_user_func(\Composer\Autoload\ComposerStaticInita65219480e06d3a387acc6e0e78b3424::getInitializer($loader));
34
  } else {
35
  $map = require __DIR__ . '/autoload_namespaces.php';
36
  foreach ($map as $namespace => $path) {
@@ -51,19 +51,19 @@ class ComposerAutoloaderInita65219480e06d3a387acc6e0e78b3424
51
  $loader->register(true);
52
 
53
  if ($useStaticLoader) {
54
- $includeFiles = Composer\Autoload\ComposerStaticInita65219480e06d3a387acc6e0e78b3424::$files;
55
  } else {
56
  $includeFiles = require __DIR__ . '/autoload_files.php';
57
  }
58
  foreach ($includeFiles as $fileIdentifier => $file) {
59
- composerRequirea65219480e06d3a387acc6e0e78b3424($fileIdentifier, $file);
60
  }
61
 
62
  return $loader;
63
  }
64
  }
65
 
66
- function composerRequirea65219480e06d3a387acc6e0e78b3424($fileIdentifier, $file)
67
  {
68
  if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
69
  require $file;
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
+ class ComposerAutoloaderInitcece4ff258dfa370529d92aa8c5b835f
6
  {
7
  private static $loader;
8
 
22
  return self::$loader;
23
  }
24
 
25
+ spl_autoload_register(array('ComposerAutoloaderInitcece4ff258dfa370529d92aa8c5b835f', 'loadClassLoader'), true, true);
26
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
27
+ spl_autoload_unregister(array('ComposerAutoloaderInitcece4ff258dfa370529d92aa8c5b835f', 'loadClassLoader'));
28
 
29
  $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
30
  if ($useStaticLoader) {
31
  require_once __DIR__ . '/autoload_static.php';
32
 
33
+ call_user_func(\Composer\Autoload\ComposerStaticInitcece4ff258dfa370529d92aa8c5b835f::getInitializer($loader));
34
  } else {
35
  $map = require __DIR__ . '/autoload_namespaces.php';
36
  foreach ($map as $namespace => $path) {
51
  $loader->register(true);
52
 
53
  if ($useStaticLoader) {
54
+ $includeFiles = Composer\Autoload\ComposerStaticInitcece4ff258dfa370529d92aa8c5b835f::$files;
55
  } else {
56
  $includeFiles = require __DIR__ . '/autoload_files.php';
57
  }
58
  foreach ($includeFiles as $fileIdentifier => $file) {
59
+ composerRequirecece4ff258dfa370529d92aa8c5b835f($fileIdentifier, $file);
60
  }
61
 
62
  return $loader;
63
  }
64
  }
65
 
66
+ function composerRequirecece4ff258dfa370529d92aa8c5b835f($fileIdentifier, $file)
67
  {
68
  if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
69
  require $file;
vendor/composer/autoload_static.php CHANGED
@@ -4,7 +4,7 @@
4
 
5
  namespace Composer\Autoload;
6
 
7
- class ComposerStaticInita65219480e06d3a387acc6e0e78b3424
8
  {
9
  public static $files = array (
10
  '9fef4034ed73e26a337d9856ea126f7f' => __DIR__ . '/..' . '/codeinwp/themeisle-sdk/load.php',
4
 
5
  namespace Composer\Autoload;
6
 
7
+ class ComposerStaticInitcece4ff258dfa370529d92aa8c5b835f
8
  {
9
  public static $files = array (
10
  '9fef4034ed73e26a337d9856ea126f7f' => __DIR__ . '/..' . '/codeinwp/themeisle-sdk/load.php',