diff --git src/wp-admin/includes/class-wp-debug-data.php src/wp-admin/includes/class-wp-debug-data.php
index 85ef2384c9..016c9e3129 100644
|
|
|
class WP_Debug_Data { |
| 631 | 631 | 'debug' => ( is_array( $gd ) ? $gd['GD Version'] : 'not available' ), |
| 632 | 632 | ); |
| 633 | 633 | |
| | 634 | $gd_image_formats = array(); |
| | 635 | $gd_supported_formats = array( |
| | 636 | 'GIF Create' => 'GIF', |
| | 637 | 'JPEG' => 'JPEG', |
| | 638 | 'PNG' => 'PNG', |
| | 639 | 'WebP' => 'WebP', |
| | 640 | 'BMP' => 'BMP', |
| | 641 | 'AVIF' => 'AVIF', |
| | 642 | 'HEIF' => 'HEIF', |
| | 643 | 'TIFF' => 'TIFF', |
| | 644 | 'XPM' => 'XPM', |
| | 645 | ); |
| | 646 | |
| | 647 | foreach ( $gd_supported_formats as $format_key => $format ) { |
| | 648 | $index = $format_key . ' Support'; |
| | 649 | if ( isset( $gd[ $index ] ) && $gd[ $index ] ) { |
| | 650 | array_push( $gd_image_formats, $format ); |
| | 651 | } |
| | 652 | } |
| | 653 | |
| | 654 | if ( ! empty( $gd_image_formats ) ) { |
| | 655 | $info['wp-media']['fields']['gd_formats'] = array( |
| | 656 | 'label' => __( 'GD supported file formats' ), |
| | 657 | 'value' => implode( ', ', $gd_image_formats ), |
| | 658 | ); |
| | 659 | } |
| | 660 | |
| 634 | 661 | // Get Ghostscript information, if available. |
| 635 | 662 | if ( function_exists( 'exec' ) ) { |
| 636 | 663 | $gs = exec( 'gs --version' ); |