Version Description
(2020-10-23) =
* [Fixed]
Error detection of non-working redirects without .png as supported file extension
Download this release
Release Info
Developer | mateuszgbiorczyk |
Plugin | Converter for Media – Optimize images | Convert WebP & AVIF |
Version | 1.4.6 |
Comparing to | |
See all releases |
Code changes from version 1.4.5 to 1.4.6
- app/Settings/Errors.php +2 -2
- readme.txt +3 -0
- resources/components/widgets/regenerate.php +2 -2
- webp-converter-for-media.php +2 -2
app/Settings/Errors.php
CHANGED
@@ -81,6 +81,7 @@
|
|
81 |
$this->copyFilesForDebug();
|
82 |
add_filter('webpc_get_values', [$this, 'setExtensionsForDebug']);
|
83 |
add_filter('webpc_gd_create_methods', [$this, 'setMethodsForDebug']);
|
|
|
84 |
|
85 |
if ($this->ifRedirectsAreWorks() !== true) {
|
86 |
if ($this->ifBypassingApacheIsActive() === true) {
|
@@ -94,6 +95,7 @@
|
|
94 |
|
95 |
remove_filter('webpc_get_values', [$this, 'setExtensionsForDebug']);
|
96 |
remove_filter('webpc_gd_create_methods', [$this, 'setMethodsForDebug']);
|
|
|
97 |
|
98 |
return $errors;
|
99 |
}
|
@@ -196,14 +198,12 @@
|
|
196 |
$uploads = wp_upload_dir();
|
197 |
$sourceFile = apply_filters('webpc_uploads_path', []) . self::PATH_OUTPUT_FILE_PNG2;
|
198 |
|
199 |
-
do_action(Htaccess::ACTION_NAME, true);
|
200 |
do_action('webpc_convert_paths', apply_filters('webpc_attachment_paths', [
|
201 |
$sourceFile,
|
202 |
], true));
|
203 |
|
204 |
$filePng = $this->getFileSizeByUrl($uploads['baseurl'] . self::PATH_OUTPUT_FILE_PNG);
|
205 |
$filePng2 = $this->getFileSizeByUrl($uploads['baseurl'] . self::PATH_OUTPUT_FILE_PNG2);
|
206 |
-
do_action(Htaccess::ACTION_NAME, true);
|
207 |
|
208 |
return ($filePng > $filePng2);
|
209 |
}
|
81 |
$this->copyFilesForDebug();
|
82 |
add_filter('webpc_get_values', [$this, 'setExtensionsForDebug']);
|
83 |
add_filter('webpc_gd_create_methods', [$this, 'setMethodsForDebug']);
|
84 |
+
do_action(Htaccess::ACTION_NAME, true);
|
85 |
|
86 |
if ($this->ifRedirectsAreWorks() !== true) {
|
87 |
if ($this->ifBypassingApacheIsActive() === true) {
|
95 |
|
96 |
remove_filter('webpc_get_values', [$this, 'setExtensionsForDebug']);
|
97 |
remove_filter('webpc_gd_create_methods', [$this, 'setMethodsForDebug']);
|
98 |
+
do_action(Htaccess::ACTION_NAME, true);
|
99 |
|
100 |
return $errors;
|
101 |
}
|
198 |
$uploads = wp_upload_dir();
|
199 |
$sourceFile = apply_filters('webpc_uploads_path', []) . self::PATH_OUTPUT_FILE_PNG2;
|
200 |
|
|
|
201 |
do_action('webpc_convert_paths', apply_filters('webpc_attachment_paths', [
|
202 |
$sourceFile,
|
203 |
], true));
|
204 |
|
205 |
$filePng = $this->getFileSizeByUrl($uploads['baseurl'] . self::PATH_OUTPUT_FILE_PNG);
|
206 |
$filePng2 = $this->getFileSizeByUrl($uploads['baseurl'] . self::PATH_OUTPUT_FILE_PNG2);
|
|
|
207 |
|
208 |
return ($filePng > $filePng2);
|
209 |
}
|
readme.txt
CHANGED
@@ -485,6 +485,9 @@ This is all very important to us and allows us to do even better things for you!
|
|
485 |
|
486 |
== Changelog ==
|
487 |
|
|
|
|
|
|
|
488 |
= 1.4.5 (2020-10-19) =
|
489 |
* `[Fixed]` Content for translations
|
490 |
|
485 |
|
486 |
== Changelog ==
|
487 |
|
488 |
+
= 1.4.6 (2020-10-23) =
|
489 |
+
* `[Fixed]` Error detection of non-working redirects without .png as supported file extension
|
490 |
+
|
491 |
= 1.4.5 (2020-10-19) =
|
492 |
* `[Fixed]` Content for translations
|
493 |
|
resources/components/widgets/regenerate.php
CHANGED
@@ -46,8 +46,8 @@
|
|
46 |
<div class="webpPopup__content">
|
47 |
<p><?= __('Hi, I\'m Mateusz! I\'m glad you managed to reduce the weight of your website. If you would like to support me in developing this plugin, I will be very grateful to you!', 'webp-converter-for-media'); ?></p>
|
48 |
<p>
|
49 |
-
<a href="https://ko-fi.com/gbiorczyk/" target="_blank" class="webpButton webpButton--blue dashicons-
|
50 |
-
<?= __('Provide
|
51 |
</a>
|
52 |
</p>
|
53 |
</div>
|
46 |
<div class="webpPopup__content">
|
47 |
<p><?= __('Hi, I\'m Mateusz! I\'m glad you managed to reduce the weight of your website. If you would like to support me in developing this plugin, I will be very grateful to you!', 'webp-converter-for-media'); ?></p>
|
48 |
<p>
|
49 |
+
<a href="https://ko-fi.com/gbiorczyk/" target="_blank" class="webpButton webpButton--blue dashicons-coffee">
|
50 |
+
<?= __('Provide me a coffee', 'webp-converter-for-media'); ?>
|
51 |
</a>
|
52 |
</p>
|
53 |
</div>
|
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: 1.4.
|
7 |
Author: Mateusz Gbiorczyk
|
8 |
Author URI: https://gbiorczyk.pl/
|
9 |
Text Domain: webp-converter-for-media
|
10 |
*/
|
11 |
|
12 |
-
define('WEBPC_VERSION', '1.4.
|
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: 1.4.6
|
7 |
Author: Mateusz Gbiorczyk
|
8 |
Author URI: https://gbiorczyk.pl/
|
9 |
Text Domain: webp-converter-for-media
|
10 |
*/
|
11 |
|
12 |
+
define('WEBPC_VERSION', '1.4.6');
|
13 |
define('WEBPC_FILE', __FILE__);
|
14 |
define('WEBPC_NAME', plugin_basename(__FILE__));
|
15 |
define('WEBPC_PATH', plugin_dir_path(__FILE__));
|