Skip to content

Commit 1730f77

Browse files
committed
Upgrade/Install: Indicate HEIC support when checking upgrades.
Adds tracking of HEIC image type support alongside WebP and AVID image types when requesting upgrade from WordPress.org Props adamsilverstein, swissspidy, dd32, mukesh27. Fixes #61981. git-svn-id: https://develop.svn.wordpress.org/trunk@59018 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 8f90a7e commit 1730f77

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/wp-includes/update.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,24 +115,26 @@ function wp_version_check( $extra_stats = array(), $force_check = false ) {
115115
// Filter to supported values.
116116
$gd_info = array_filter( $gd_info );
117117

118-
// Add data for GD WebP and AVIF support.
118+
// Add data for GD WebP, AVIF and HEIC support.
119119
$query['image_support']['gd'] = array_keys(
120120
array_filter(
121121
array(
122122
'webp' => isset( $gd_info['WebP Support'] ),
123123
'avif' => isset( $gd_info['AVIF Support'] ),
124+
'heic' => isset( $gd_info['HEIC Support'] ),
124125
)
125126
)
126127
);
127128
}
128129

129130
if ( class_exists( 'Imagick' ) ) {
130-
// Add data for Imagick WebP and AVIF support.
131+
// Add data for Imagick WebP, AVIF and HEIC support.
131132
$query['image_support']['imagick'] = array_keys(
132133
array_filter(
133134
array(
134135
'webp' => ! empty( Imagick::queryFormats( 'WEBP' ) ),
135136
'avif' => ! empty( Imagick::queryFormats( 'AVIF' ) ),
137+
'heic' => ! empty( Imagick::queryFormats( 'HEIC' ) ),
136138
)
137139
)
138140
);

0 commit comments

Comments
 (0)