From 0dd1e1f144947ddded9d00b4a27f431d9b7d1848 Mon Sep 17 00:00:00 2001 From: Ahmed Saed Date: Wed, 22 Feb 2023 01:02:24 -0700 Subject: [PATCH] adjust the condition (#5773) --- inc/Addon/WebP/Subscriber.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/Addon/WebP/Subscriber.php b/inc/Addon/WebP/Subscriber.php index cb9ba3643d..41d267c2ae 100644 --- a/inc/Addon/WebP/Subscriber.php +++ b/inc/Addon/WebP/Subscriber.php @@ -172,7 +172,7 @@ public function convert_to_webp( $html ) { * @return bool */ public function maybe_disable_webp_cache( $disable_webp_cache ): bool { - return $disable_webp_cache && ! empty( $this->get_plugins_serving_webp() ) ? true : (bool) $disable_webp_cache; + return $disable_webp_cache || ! empty( $this->get_plugins_serving_webp() ); } /**