diff --git a/src/wp-includes/update.php b/src/wp-includes/update.php index c623b248b9308..79ed9cd5743c8 100644 --- a/src/wp-includes/update.php +++ b/src/wp-includes/update.php @@ -115,24 +115,26 @@ function wp_version_check( $extra_stats = array(), $force_check = false ) { // Filter to supported values. $gd_info = array_filter( $gd_info ); - // Add data for GD WebP and AVIF support. + // Add data for GD WebP, AVIF and HEIC support. $query['image_support']['gd'] = array_keys( array_filter( array( 'webp' => isset( $gd_info['WebP Support'] ), 'avif' => isset( $gd_info['AVIF Support'] ), + 'heic' => isset( $gd_info['HEIC Support'] ), ) ) ); } if ( class_exists( 'Imagick' ) ) { - // Add data for Imagick WebP and AVIF support. + // Add data for Imagick WebP, AVIF and HEIC support. $query['image_support']['imagick'] = array_keys( array_filter( array( 'webp' => ! empty( Imagick::queryFormats( 'WEBP' ) ), 'avif' => ! empty( Imagick::queryFormats( 'AVIF' ) ), + 'heic' => ! empty( Imagick::queryFormats( 'HEIC' ) ), ) ) );