We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 276bfcf commit 288c6bbCopy full SHA for 288c6bb
src/media.cls.php
@@ -37,8 +37,12 @@ public function __construct()
37
$this->_wp_upload_dir = wp_upload_dir();
38
if ($this->conf(Base::O_IMG_OPTM_WEBP)) {
39
$this->_format = 'webp';
40
- if ($this->conf(Base::O_IMG_OPTM_WEBP) == 2) $this->_format = 'avif';
41
- if (!$this->_browser_support_next_gen()) $this->_format = '';
+ if ($this->conf(Base::O_IMG_OPTM_WEBP) == 2) {
+ $this->_format = 'avif';
42
+ }
43
+ if (!$this->_browser_support_next_gen()) {
44
+ $this->_format = '';
45
46
}
47
48
0 commit comments