Skip to content

Commit 7b55ec3

Browse files
No ??
1 parent 0fb8169 commit 7b55ec3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/class-tiny-image-negotiation.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ private function filter_images( $content, $mimetypes ) {
115115
* @return array|null [ 'ext' => string, 'mime' => string ].
116116
*/
117117
private function get_support_formats() {
118-
$accept = $_SERVER['HTTP_ACCEPT'] ?? '';
118+
$accept = isset($_SERVER['HTTP_ACCEPT']) ? $_SERVER['HTTP_ACCEPT'] : '';
119119
$accepted_formats = array();
120120
if ( stripos( $accept, 'image/avif' ) !== false ) {
121121
$accepted_formats[] = array(

0 commit comments

Comments
 (0)