From e86563760f69c06942d000d0e73b73eb51ccc94c Mon Sep 17 00:00:00 2001 From: desrosj Date: Mon, 30 Sep 2024 22:33:15 +0000 Subject: [PATCH] Upgrade/Install: Indicate JPEG XL support when checking upgrades. This adds tracking of the JPEG XL image type support alongside WebP, HEIC, and AVIF image types when requesting an upgrade from WordPress.org. This will check for JPEG XL support in both ImageMagick and GD, even though GD technically does not yet have support for JPEG XL. Props deepakrohilla, swissspidy, dd32, ayeshrajans, samiamnot, joemcgill. Fixes #62050. Built from https://develop.svn.wordpress.org/trunk@59140 git-svn-id: http://core.svn.wordpress.org/trunk@58536 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/update.php | 6 ++++-- wp-includes/version.php | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/wp-includes/update.php b/wp-includes/update.php index 79ed9cd574..572f7ee4c6 100644 --- a/wp-includes/update.php +++ b/wp-includes/update.php @@ -115,26 +115,28 @@ 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, AVIF and HEIC support. + // Add data for GD WebP, AVIF, HEIC and JPEG XL 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'] ), + 'jxl' => isset( $gd_info['JXL Support'] ), ) ) ); } if ( class_exists( 'Imagick' ) ) { - // Add data for Imagick WebP, AVIF and HEIC support. + // Add data for Imagick WebP, AVIF, HEIC and JPEG XL 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' ) ), + 'jxl' => ! empty( Imagick::queryFormats( 'JXL' ) ), ) ) ); diff --git a/wp-includes/version.php b/wp-includes/version.php index fe8177fce0..42c1beeb44 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.7-alpha-59139'; +$wp_version = '6.7-alpha-59140'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.