Skip to content

Commit 288c6bb

Browse files
author
Hai Zheng
committed
-
1 parent 276bfcf commit 288c6bb

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/media.cls.php

+6-2
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,12 @@ public function __construct()
3737
$this->_wp_upload_dir = wp_upload_dir();
3838
if ($this->conf(Base::O_IMG_OPTM_WEBP)) {
3939
$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 = '';
40+
if ($this->conf(Base::O_IMG_OPTM_WEBP) == 2) {
41+
$this->_format = 'avif';
42+
}
43+
if (!$this->_browser_support_next_gen()) {
44+
$this->_format = '';
45+
}
4246
}
4347
}
4448

0 commit comments

Comments
 (0)