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

Version Description

(2022-06-03) = * [Fixed] Notification about Cloudflare cache

Download this release

Release Info

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

Code changes from version 4.3.5 to 4.3.6

changelog.txt CHANGED
@@ -1,5 +1,8 @@
1
  == Changelog ==
2
 
 
 
 
3
  = 4.3.5 (2022-06-02) =
4
  * `[Changed]` Generating rewrite rules for via .htaccess loading mode (applies to rewrites_not_working server configuration error)
5
  * `[Added]` Support for Hide My WP plugin
1
  == Changelog ==
2
 
3
+ = 4.3.6 (2022-06-03) =
4
+ * `[Fixed]` Notification about Cloudflare cache
5
+
6
  = 4.3.5 (2022-06-02) =
7
  * `[Changed]` Generating rewrite rules for via .htaccess loading mode (applies to rewrites_not_working server configuration error)
8
  * `[Added]` Support for Hide My WP plugin
readme.txt CHANGED
@@ -329,6 +329,9 @@ After making changes, remember to restart the machine:
329
 
330
  == Changelog ==
331
 
 
 
 
332
  = 4.3.5 (2022-06-02) =
333
  * `[Changed]` Generating rewrite rules for via .htaccess loading mode (applies to rewrites_not_working server configuration error)
334
  * `[Added]` Support for Hide My WP plugin
329
 
330
  == Changelog ==
331
 
332
+ = 4.3.6 (2022-06-03) =
333
+ * `[Fixed]` Notification about Cloudflare cache
334
+
335
  = 4.3.5 (2022-06-02) =
336
  * `[Changed]` Generating rewrite rules for via .htaccess loading mode (applies to rewrites_not_working server configuration error)
337
  * `[Added]` Support for Hide My WP plugin
src/Notice/CloudflareNotice.php CHANGED
@@ -33,11 +33,11 @@ class CloudflareNotice extends NoticeAbstract implements NoticeInterface {
33
  */
34
  public function is_available(): bool {
35
  $cdn_server = strtolower( $_SERVER['HTTP_CDN_LOOP'] ?? '' ); // phpcs:ignore WordPress.Security.ValidatedSanitizedInput
36
- if ( ( strpos( $cdn_server, 'cloudflare' ) !== false ) && ! is_plugin_active( 'cloudflare/cloudflare.php' ) ) {
37
- return false;
38
  }
39
 
40
- return ( isset( $_GET['page'] ) && ( $_GET['page'] === PageIntegration::ADMIN_MENU_PAGE ) ); // phpcs:ignore WordPress.Security.NonceVerification
41
  }
42
 
43
  /**
33
  */
34
  public function is_available(): bool {
35
  $cdn_server = strtolower( $_SERVER['HTTP_CDN_LOOP'] ?? '' ); // phpcs:ignore WordPress.Security.ValidatedSanitizedInput
36
+ if ( ( strpos( $cdn_server, 'cloudflare' ) !== false ) || is_plugin_active( 'cloudflare/cloudflare.php' ) ) {
37
+ return ( isset( $_GET['page'] ) && ( $_GET['page'] === PageIntegration::ADMIN_MENU_PAGE ) ); // phpcs:ignore WordPress.Security.NonceVerification
38
  }
39
 
40
+ return false;
41
  }
42
 
43
  /**
webp-converter-for-media.php CHANGED
@@ -3,7 +3,7 @@
3
  /**
4
  * Plugin Name: WebP Converter for Media
5
  * Description: Speed up your website by using our WebP & AVIF Converter. Serve WebP and AVIF images instead of standard formats JPEG, PNG and GIF just now!
6
- * Version: 4.3.5
7
  * Author: Mateusz Gbiorczyk
8
  * Author URI: https://mattplugins.com/
9
  * Text Domain: webp-converter-for-media
@@ -13,5 +13,5 @@
13
  require_once __DIR__ . '/vendor/autoload.php';
14
 
15
  new WebpConverter\WebpConverter(
16
- new WebpConverter\PluginInfo( __FILE__, '4.3.5' )
17
  );
3
  /**
4
  * Plugin Name: WebP Converter for Media
5
  * Description: Speed up your website by using our WebP & AVIF Converter. Serve WebP and AVIF images instead of standard formats JPEG, PNG and GIF just now!
6
+ * Version: 4.3.6
7
  * Author: Mateusz Gbiorczyk
8
  * Author URI: https://mattplugins.com/
9
  * Text Domain: webp-converter-for-media
13
  require_once __DIR__ . '/vendor/autoload.php';
14
 
15
  new WebpConverter\WebpConverter(
16
+ new WebpConverter\PluginInfo( __FILE__, '4.3.6' )
17
  );