diff --git src/wp-includes/update.php src/wp-includes/update.php
index 04c8aa3ec2..0e57f0dbc7 100644
|
|
|
function wp_version_check( $extra_stats = array(), $force_check = false ) { |
| 99 | 99 | 'users' => get_user_count(), |
| 100 | 100 | 'multisite_enabled' => $multisite_enabled, |
| 101 | 101 | 'initial_db_version' => get_site_option( 'initial_db_version' ), |
| | 102 | 'extensions' => array_combine( get_loaded_extensions(), array_map( 'phpversion', get_loaded_extensions() ) ), |
| | 103 | 'platform_flags' => array( |
| | 104 | 'os' => PHP_OS, |
| | 105 | 'bits' => PHP_INT_SIZE === 4 ? 32 : 64, |
| | 106 | ), |
| | 107 | 'image_support' => array(), |
| 102 | 108 | ); |
| 103 | 109 | |
| | 110 | if ( function_exists( 'gd_info' ) ) { |
| | 111 | $gd_info = gd_info(); |
| | 112 | |
| | 113 | // Filter to supported values. |
| | 114 | $gd_info = array_filter( $gd_info ); |
| | 115 | |
| | 116 | // Add data for GD WebP and AVIF support. |
| | 117 | $query['image_support']['gd'] = array_keys( array_filter( array( |
| | 118 | 'webp' => isset( $gd_info['WebP Support'] ), |
| | 119 | 'avif' => isset( $gd_info['AVIF Support'] ), |
| | 120 | ) ) ); |
| | 121 | } |
| | 122 | |
| | 123 | if ( class_exists( 'Imagick' ) ) { |
| | 124 | |
| | 125 | // Add data for Imagick WebP and AVIF support. |
| | 126 | $query['image_support']['imagick'] = array_keys( array_filter( array( |
| | 127 | 'webp' => ! empty( Imagick::queryFormats('WEBP') ), |
| | 128 | 'avif' => ! empty( Imagick::queryFormats('AVIF') ), |
| | 129 | ) ) ); |
| | 130 | } |
| | 131 | |
| 104 | 132 | /** |
| 105 | 133 | * Filters the query arguments sent as part of the core version check. |
| 106 | 134 | * |