Image optimization & Lazy Load by Optimole - Version 3.1.3

Version Description

Download this release

Release Info

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

Code changes from version 3.1.2 to 3.1.3

CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
 
 
 
 
1
  ##### [Version 3.1.2](https://github.com/Codeinwp/optimole-wp/compare/v3.1.1...v3.1.2) (2021-08-04)
2
 
3
  * Adds a filter to force replacements as optml_force_replacement
1
+ ##### [Version 3.1.3](https://github.com/Codeinwp/optimole-wp/compare/v3.1.2...v3.1.3) (2021-08-06)
2
+
3
+ * Preserve selected custom domain on stats refresh when multiple custom domains are used.
4
+
5
  ##### [Version 3.1.2](https://github.com/Codeinwp/optimole-wp/compare/v3.1.1...v3.1.2) (2021-08-04)
6
 
7
  * Adds a filter to force replacements as optml_force_replacement
inc/admin.php CHANGED
@@ -522,12 +522,19 @@ class Optml_Admin {
522
  function daily_sync() {
523
 
524
  $api_key = $this->settings->get( 'api_key' );
 
 
 
 
 
 
 
525
  if ( empty( $api_key ) ) {
526
  return;
527
  }
528
 
529
  $request = new Optml_Api();
530
- $data = $request->get_user_data( $api_key );
531
  if ( $data === false || is_wp_error( $data ) ) {
532
  return;
533
  }
@@ -850,6 +857,9 @@ The root cause might be either a security plugin which blocks this feature or so
850
  'sync_media' => __( 'Sync images', 'optimole-wp' ),
851
  'rollback_media' => __( 'Rollback images', 'optimole-wp' ),
852
  'sync_media_progress' => __( 'We are currently offloading your images to Optimole, please wait', 'optimole-wp' ),
 
 
 
853
  'rollback_media_progress' => __( 'We are currently moving images to your media library, please wait', 'optimole-wp' ),
854
  'rollback_media_error' => __( 'An unexpected error occured while pulling the offloaded back to your site', 'optimole-wp' ),
855
  'rollback_media_error_desc' => __( 'You can try again to pull back the rest of the images.', 'optimole-wp' ),
522
  function daily_sync() {
523
 
524
  $api_key = $this->settings->get( 'api_key' );
525
+ $service_data = $this->settings->get( 'service_data' );
526
+ $application = '';
527
+
528
+ if ( isset( $service_data['cdn_key'] ) ) {
529
+ $application = $service_data['cdn_key'];
530
+ }
531
+
532
  if ( empty( $api_key ) ) {
533
  return;
534
  }
535
 
536
  $request = new Optml_Api();
537
+ $data = $request->get_user_data( $api_key, $application );
538
  if ( $data === false || is_wp_error( $data ) ) {
539
  return;
540
  }
857
  'sync_media' => __( 'Sync images', 'optimole-wp' ),
858
  'rollback_media' => __( 'Rollback images', 'optimole-wp' ),
859
  'sync_media_progress' => __( 'We are currently offloading your images to Optimole, please wait', 'optimole-wp' ),
860
+ 'estimated_time' => __( 'Estimated time for offloading all images', 'optimole-wp' ),
861
+ 'calculating_estimated_time' => __( 'We are currently calculating the estimated time for this job', 'optimole-wp' ),
862
+ 'minutes' => __( 'minutes', 'optimole-wp' ),
863
  'rollback_media_progress' => __( 'We are currently moving images to your media library, please wait', 'optimole-wp' ),
864
  'rollback_media_error' => __( 'An unexpected error occured while pulling the offloaded back to your site', 'optimole-wp' ),
865
  'rollback_media_error_desc' => __( 'You can try again to pull back the rest of the images.', 'optimole-wp' ),
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.1.2
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', '3.1.2' );
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: 3.1.3
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', '3.1.3' );
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
@@ -93,6 +93,13 @@ Premium users will be able to optimize images for more than 25k monthly active u
93
 
94
  == Changelog ==
95
 
 
 
 
 
 
 
 
96
  ##### [Version 3.1.2](https://github.com/Codeinwp/optimole-wp/compare/v3.1.1...v3.1.2) (2021-08-04)
97
 
98
  * Adds a filter to force replacements as optml_force_replacement
93
 
94
  == Changelog ==
95
 
96
+ ##### [Version 3.1.3](https://github.com/Codeinwp/optimole-wp/compare/v3.1.2...v3.1.3) (2021-08-06)
97
+
98
+ * Preserve selected custom domain on stats refresh when multiple custom domains are used.
99
+
100
+
101
+
102
+
103
  ##### [Version 3.1.2](https://github.com/Codeinwp/optimole-wp/compare/v3.1.1...v3.1.2) (2021-08-04)
104
 
105
  * Adds a filter to force replacements as optml_force_replacement
vendor/autoload.php CHANGED
@@ -4,4 +4,4 @@
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
- return ComposerAutoloaderInitdd847f1c6268fddeba8778b2e077d3f0::getLoader();
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
+ return ComposerAutoloaderInitc0b9f59199b69f9355ab536fed34600b::getLoader();
vendor/composer/autoload_real.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
- class ComposerAutoloaderInitdd847f1c6268fddeba8778b2e077d3f0
6
  {
7
  private static $loader;
8
 
@@ -22,15 +22,15 @@ class ComposerAutoloaderInitdd847f1c6268fddeba8778b2e077d3f0
22
  return self::$loader;
23
  }
24
 
25
- spl_autoload_register(array('ComposerAutoloaderInitdd847f1c6268fddeba8778b2e077d3f0', 'loadClassLoader'), true, true);
26
  self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
27
- spl_autoload_unregister(array('ComposerAutoloaderInitdd847f1c6268fddeba8778b2e077d3f0', '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\ComposerStaticInitdd847f1c6268fddeba8778b2e077d3f0::getInitializer($loader));
34
  } else {
35
  $map = require __DIR__ . '/autoload_namespaces.php';
36
  foreach ($map as $namespace => $path) {
@@ -51,19 +51,19 @@ class ComposerAutoloaderInitdd847f1c6268fddeba8778b2e077d3f0
51
  $loader->register(true);
52
 
53
  if ($useStaticLoader) {
54
- $includeFiles = Composer\Autoload\ComposerStaticInitdd847f1c6268fddeba8778b2e077d3f0::$files;
55
  } else {
56
  $includeFiles = require __DIR__ . '/autoload_files.php';
57
  }
58
  foreach ($includeFiles as $fileIdentifier => $file) {
59
- composerRequiredd847f1c6268fddeba8778b2e077d3f0($fileIdentifier, $file);
60
  }
61
 
62
  return $loader;
63
  }
64
  }
65
 
66
- function composerRequiredd847f1c6268fddeba8778b2e077d3f0($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 ComposerAutoloaderInitc0b9f59199b69f9355ab536fed34600b
6
  {
7
  private static $loader;
8
 
22
  return self::$loader;
23
  }
24
 
25
+ spl_autoload_register(array('ComposerAutoloaderInitc0b9f59199b69f9355ab536fed34600b', 'loadClassLoader'), true, true);
26
  self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
27
+ spl_autoload_unregister(array('ComposerAutoloaderInitc0b9f59199b69f9355ab536fed34600b', '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\ComposerStaticInitc0b9f59199b69f9355ab536fed34600b::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\ComposerStaticInitc0b9f59199b69f9355ab536fed34600b::$files;
55
  } else {
56
  $includeFiles = require __DIR__ . '/autoload_files.php';
57
  }
58
  foreach ($includeFiles as $fileIdentifier => $file) {
59
+ composerRequirec0b9f59199b69f9355ab536fed34600b($fileIdentifier, $file);
60
  }
61
 
62
  return $loader;
63
  }
64
  }
65
 
66
+ function composerRequirec0b9f59199b69f9355ab536fed34600b($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 ComposerStaticInitdd847f1c6268fddeba8778b2e077d3f0
8
  {
9
  public static $files = array (
10
  '9fef4034ed73e26a337d9856ea126f7f' => __DIR__ . '/..' . '/codeinwp/themeisle-sdk/load.php',
@@ -17,7 +17,7 @@ class ComposerStaticInitdd847f1c6268fddeba8778b2e077d3f0
17
  public static function getInitializer(ClassLoader $loader)
18
  {
19
  return \Closure::bind(function () use ($loader) {
20
- $loader->classMap = ComposerStaticInitdd847f1c6268fddeba8778b2e077d3f0::$classMap;
21
 
22
  }, null, ClassLoader::class);
23
  }
4
 
5
  namespace Composer\Autoload;
6
 
7
+ class ComposerStaticInitc0b9f59199b69f9355ab536fed34600b
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 = ComposerStaticInitc0b9f59199b69f9355ab536fed34600b::$classMap;
21
 
22
  }, null, ClassLoader::class);
23
  }