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. Built from https://develop.svn.wordpress.org/trunk@59018 git-svn-id: http://core.svn.wordpress.org/trunk@58414 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
5c52d270ec
commit
81de03f277
|
@ -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' ) ),
|
||||
)
|
||||
)
|
||||
);
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '6.7-alpha-59017';
|
||||
$wp_version = '6.7-alpha-59018';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue