Skip to content

Commit

Permalink
adjust the condition (#5773)
Browse files Browse the repository at this point in the history
  • Loading branch information
engahmeds3ed committed Feb 22, 2023
1 parent 1746f4a commit 0dd1e1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inc/Addon/WebP/Subscriber.php
Expand Up @@ -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() );
}

/**
Expand Down

0 comments on commit 0dd1e1f

Please sign in to comment.