Converter for Media – Optimize images | Convert WebP & AVIF - Version 2.1.3

Version Description

(2020-12-28) = * [Fixed] Regex for Pass Thru loading mode

Download this release

Release Info

Developer mateuszgbiorczyk
Plugin Icon 128x128 Converter for Media – Optimize images | Convert WebP & AVIF
Version 2.1.3
Comparing to
See all releases

Code changes from version 2.1.2 to 2.1.3

app/Loader/Passthru.php CHANGED
@@ -78,7 +78,7 @@
78
 
79
  $dirPaths = str_replace('/', '\\/', implode('|', self::getAllowedDirs()));
80
  return preg_replace(
81
- '/(https?:\/\/(?:.*?)(?:' . $dirPaths . ')(?:.*?)\.(?:' . $extensions . '))/',
82
  $sourceDir . '?src=$1&nocache=1',
83
  $buffer);
84
  }
78
 
79
  $dirPaths = str_replace('/', '\\/', implode('|', self::getAllowedDirs()));
80
  return preg_replace(
81
+ '/(https?:\/\/(?:[^\s()"\']+)(?:' . $dirPaths . ')(?:[^\s()"\']+)\.(?:' . $extensions . '))/',
82
  $sourceDir . '?src=$1&nocache=1',
83
  $buffer);
84
  }
readme.txt CHANGED
@@ -2,7 +2,7 @@
2
  Contributors: mateuszgbiorczyk
3
  Donate link: https://ko-fi.com/gbiorczyk/?utm_source=webp-converter-for-media&utm_medium=readme-donate
4
  Tags: convert webp, webp, optimize images, images, webp converter, performance, optimisation
5
- Requires at least: 5.0
6
  Tested up to: 5.6
7
  Requires PHP: 7.0
8
  Stable tag: trunk
@@ -482,6 +482,9 @@ This is all very important to us and allows us to do even better things for you!
482
 
483
  == Changelog ==
484
 
 
 
 
485
  = 2.1.2 (2020-12-27) =
486
  * `[Fixed]` Converting images using Imagick method
487
 
2
  Contributors: mateuszgbiorczyk
3
  Donate link: https://ko-fi.com/gbiorczyk/?utm_source=webp-converter-for-media&utm_medium=readme-donate
4
  Tags: convert webp, webp, optimize images, images, webp converter, performance, optimisation
5
+ Requires at least: 4.9
6
  Tested up to: 5.6
7
  Requires PHP: 7.0
8
  Stable tag: trunk
482
 
483
  == Changelog ==
484
 
485
+ = 2.1.3 (2020-12-28) =
486
+ * `[Fixed]` Regex for Pass Thru loading mode
487
+
488
  = 2.1.2 (2020-12-27) =
489
  * `[Fixed]` Converting images using Imagick method
490
 
webp-converter-for-media.php CHANGED
@@ -3,13 +3,13 @@
3
  /*
4
  Plugin Name: WebP Converter for Media
5
  Description: Speed up your website by serving WebP images instead of standard formats JPEG, PNG and GIF.
6
- Version: 2.1.2
7
  Author: Mateusz Gbiorczyk
8
  Author URI: https://gbiorczyk.pl/
9
  Text Domain: webp-converter-for-media
10
  */
11
 
12
- define('WEBPC_VERSION', '2.1.2');
13
  define('WEBPC_FILE', __FILE__);
14
  define('WEBPC_NAME', plugin_basename(__FILE__));
15
  define('WEBPC_PATH', plugin_dir_path(__FILE__));
3
  /*
4
  Plugin Name: WebP Converter for Media
5
  Description: Speed up your website by serving WebP images instead of standard formats JPEG, PNG and GIF.
6
+ Version: 2.1.3
7
  Author: Mateusz Gbiorczyk
8
  Author URI: https://gbiorczyk.pl/
9
  Text Domain: webp-converter-for-media
10
  */
11
 
12
+ define('WEBPC_VERSION', '2.1.3');
13
  define('WEBPC_FILE', __FILE__);
14
  define('WEBPC_NAME', plugin_basename(__FILE__));
15
  define('WEBPC_PATH', plugin_dir_path(__FILE__));