Image optimization & Lazy Load by Optimole - Version 3.3.3

Version Description

Download this release

Release Info

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

Code changes from version 3.3.2 to 3.3.3

CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
 
 
 
 
 
 
1
  ##### [Version 3.3.2](https://github.com/Codeinwp/optimole-wp/compare/v3.3.1...v3.3.2) (2022-03-17)
2
 
3
  #### Fixes
1
+ ##### [Version 3.3.3](https://github.com/Codeinwp/optimole-wp/compare/v3.3.2...v3.3.3) (2022-03-18)
2
+
3
+ #### Fixes
4
+ - adds filter <code>optml_gif_to_video_flags</code> to exclude GIF placeholders from video conversion
5
+ - adds compatibility with Avada live to remove replacement in edit mode
6
+
7
  ##### [Version 3.3.2](https://github.com/Codeinwp/optimole-wp/compare/v3.3.1...v3.3.2) (2022-03-17)
8
 
9
  #### Fixes
inc/manager.php CHANGED
@@ -183,9 +183,14 @@ final class Optml_Manager {
183
  if ( array_key_exists( 'context', $_GET ) && $_GET['context'] == 'edit' ) { // phpcs:ignore WordPress.PHP.StrictComparisons.LooseComparison
184
  return false; // @codeCoverageIgnore
185
  }
 
186
  if ( array_key_exists( 'fb-edit', $_GET ) && ! empty( $_GET['fb-edit'] ) ) {
187
  return false; // @codeCoverageIgnore
188
  }
 
 
 
 
189
  /**
190
  * Disable replacement on POST request and when user is logged in, but allows for sample image call widget in dashboard
191
  */
183
  if ( array_key_exists( 'context', $_GET ) && $_GET['context'] == 'edit' ) { // phpcs:ignore WordPress.PHP.StrictComparisons.LooseComparison
184
  return false; // @codeCoverageIgnore
185
  }
186
+ // avada
187
  if ( array_key_exists( 'fb-edit', $_GET ) && ! empty( $_GET['fb-edit'] ) ) {
188
  return false; // @codeCoverageIgnore
189
  }
190
+ if ( array_key_exists( 'builder', $_GET ) && ! empty( $_GET['builder'] )
191
+ && array_key_exists( 'builder_id', $_GET ) && ! empty( $_GET['builder_id'] ) ) {
192
+ return false; // @codeCoverageIgnore
193
+ }
194
  /**
195
  * Disable replacement on POST request and when user is logged in, but allows for sample image call widget in dashboard
196
  */
inc/tag_replacer.php CHANGED
@@ -85,6 +85,9 @@ final class Optml_Tag_Replacer extends Optml_App_Replacer {
85
  if ( ! $this->is_valid_gif( $image_url ) ) {
86
  return false;
87
  }
 
 
 
88
  $link_mp4 = apply_filters(
89
  'optml_content_url',
90
  $image_url,
85
  if ( ! $this->is_valid_gif( $image_url ) ) {
86
  return false;
87
  }
88
+ if ( false === Optml_Filters::should_do_image( $image_url, apply_filters( 'optml_gif_to_video_flags', [ 'lazyload' => true, 'placeholder' => true ] ) ) ) {
89
+ return false;
90
+ }
91
  $link_mp4 = apply_filters(
92
  'optml_content_url',
93
  $image_url,
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: 3.3.2
6
  * Author: Optimole
7
  * Author URI: https://optimole.com
8
  * License: GPL-2.0+
@@ -74,7 +74,7 @@ function optml() {
74
  }
75
  define( 'OPTML_URL', plugin_dir_url( __FILE__ ) );
76
  define( 'OPTML_PATH', plugin_dir_path( __FILE__ ) );
77
- define( 'OPTML_VERSION', '3.3.2' );
78
  define( 'OPTML_NAMESPACE', 'optml' );
79
  define( 'OPTML_BASEFILE', __FILE__ );
80
  // 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: 3.3.3
6
  * Author: Optimole
7
  * Author URI: https://optimole.com
8
  * License: GPL-2.0+
74
  }
75
  define( 'OPTML_URL', plugin_dir_url( __FILE__ ) );
76
  define( 'OPTML_PATH', plugin_dir_path( __FILE__ ) );
77
+ define( 'OPTML_VERSION', '3.3.3' );
78
  define( 'OPTML_NAMESPACE', 'optml' );
79
  define( 'OPTML_BASEFILE', __FILE__ );
80
  // Fallback for old PHP versions when this constant is not defined.
readme.txt CHANGED
@@ -94,6 +94,15 @@ Premium users will be able to optimize images starting with more than 25k monthl
94
 
95
  == Changelog ==
96
 
 
 
 
 
 
 
 
 
 
97
  ##### [Version 3.3.2](https://github.com/Codeinwp/optimole-wp/compare/v3.3.1...v3.3.2) (2022-03-17)
98
 
99
  #### Fixes
94
 
95
  == Changelog ==
96
 
97
+ ##### [Version 3.3.3](https://github.com/Codeinwp/optimole-wp/compare/v3.3.2...v3.3.3) (2022-03-18)
98
+
99
+ #### Fixes
100
+ - adds filter <code>optml_gif_to_video_flags</code> to exclude GIF placeholders from video conversion
101
+ - adds compatibility with Avada live to remove replacement in edit mode
102
+
103
+
104
+
105
+
106
  ##### [Version 3.3.2](https://github.com/Codeinwp/optimole-wp/compare/v3.3.1...v3.3.2) (2022-03-17)
107
 
108
  #### Fixes
vendor/autoload.php CHANGED
@@ -4,4 +4,4 @@
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
- return ComposerAutoloaderInitb72e45d3fd937e66590f56c1effc6e43::getLoader();
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
+ return ComposerAutoloaderInit9243b55a65d9e98acd826d416349052d::getLoader();
vendor/composer/autoload_real.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
- class ComposerAutoloaderInitb72e45d3fd937e66590f56c1effc6e43
6
  {
7
  private static $loader;
8
 
@@ -22,15 +22,15 @@ class ComposerAutoloaderInitb72e45d3fd937e66590f56c1effc6e43
22
  return self::$loader;
23
  }
24
 
25
- spl_autoload_register(array('ComposerAutoloaderInitb72e45d3fd937e66590f56c1effc6e43', 'loadClassLoader'), true, true);
26
  self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
27
- spl_autoload_unregister(array('ComposerAutoloaderInitb72e45d3fd937e66590f56c1effc6e43', '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 __DIR__ . '/autoload_static.php';
32
 
33
- call_user_func(\Composer\Autoload\ComposerStaticInitb72e45d3fd937e66590f56c1effc6e43::getInitializer($loader));
34
  } else {
35
  $map = require __DIR__ . '/autoload_namespaces.php';
36
  foreach ($map as $namespace => $path) {
@@ -51,12 +51,12 @@ class ComposerAutoloaderInitb72e45d3fd937e66590f56c1effc6e43
51
  $loader->register(true);
52
 
53
  if ($useStaticLoader) {
54
- $includeFiles = Composer\Autoload\ComposerStaticInitb72e45d3fd937e66590f56c1effc6e43::$files;
55
  } else {
56
  $includeFiles = require __DIR__ . '/autoload_files.php';
57
  }
58
  foreach ($includeFiles as $fileIdentifier => $file) {
59
- composerRequireb72e45d3fd937e66590f56c1effc6e43($fileIdentifier, $file);
60
  }
61
 
62
  return $loader;
@@ -68,7 +68,7 @@ class ComposerAutoloaderInitb72e45d3fd937e66590f56c1effc6e43
68
  * @param string $file
69
  * @return void
70
  */
71
- function composerRequireb72e45d3fd937e66590f56c1effc6e43($fileIdentifier, $file)
72
  {
73
  if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
74
  $GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
+ class ComposerAutoloaderInit9243b55a65d9e98acd826d416349052d
6
  {
7
  private static $loader;
8
 
22
  return self::$loader;
23
  }
24
 
25
+ spl_autoload_register(array('ComposerAutoloaderInit9243b55a65d9e98acd826d416349052d', 'loadClassLoader'), true, true);
26
  self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
27
+ spl_autoload_unregister(array('ComposerAutoloaderInit9243b55a65d9e98acd826d416349052d', '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 __DIR__ . '/autoload_static.php';
32
 
33
+ call_user_func(\Composer\Autoload\ComposerStaticInit9243b55a65d9e98acd826d416349052d::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\ComposerStaticInit9243b55a65d9e98acd826d416349052d::$files;
55
  } else {
56
  $includeFiles = require __DIR__ . '/autoload_files.php';
57
  }
58
  foreach ($includeFiles as $fileIdentifier => $file) {
59
+ composerRequire9243b55a65d9e98acd826d416349052d($fileIdentifier, $file);
60
  }
61
 
62
  return $loader;
68
  * @param string $file
69
  * @return void
70
  */
71
+ function composerRequire9243b55a65d9e98acd826d416349052d($fileIdentifier, $file)
72
  {
73
  if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
74
  $GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;
vendor/composer/autoload_static.php CHANGED
@@ -4,7 +4,7 @@
4
 
5
  namespace Composer\Autoload;
6
 
7
- class ComposerStaticInitb72e45d3fd937e66590f56c1effc6e43
8
  {
9
  public static $files = array (
10
  '9fef4034ed73e26a337d9856ea126f7f' => __DIR__ . '/..' . '/codeinwp/themeisle-sdk/load.php',
@@ -17,7 +17,7 @@ class ComposerStaticInitb72e45d3fd937e66590f56c1effc6e43
17
  public static function getInitializer(ClassLoader $loader)
18
  {
19
  return \Closure::bind(function () use ($loader) {
20
- $loader->classMap = ComposerStaticInitb72e45d3fd937e66590f56c1effc6e43::$classMap;
21
 
22
  }, null, ClassLoader::class);
23
  }
4
 
5
  namespace Composer\Autoload;
6
 
7
+ class ComposerStaticInit9243b55a65d9e98acd826d416349052d
8
  {
9
  public static $files = array (
10
  '9fef4034ed73e26a337d9856ea126f7f' => __DIR__ . '/..' . '/codeinwp/themeisle-sdk/load.php',
17
  public static function getInitializer(ClassLoader $loader)
18
  {
19
  return \Closure::bind(function () use ($loader) {
20
+ $loader->classMap = ComposerStaticInit9243b55a65d9e98acd826d416349052d::$classMap;
21
 
22
  }, null, ClassLoader::class);
23
  }