Make WordPress Core

Ticket #53022: 53022.diff

File 53022.diff, 1001 bytes (added by desrosj, 5 years ago)
  • src/wp-admin/includes/class-wp-debug-data.php

     
    597597                                'value' => $limits,
    598598                                'debug' => $limits_debug,
    599599                        );
     600
     601                        try {
     602                                $formats = Imagick::queryFormats( '*' );
     603                        } catch ( Exception $e ) {
     604                                $formats = array();
     605                        }
     606
     607                        if ( empty( $formats ) ) {
     608                                $info['wp-media']['fields']['imagick_file_formats'] = array(
     609                                        'label' => __( 'Imagick supported file formats' ),
     610                                        'value' => __( 'Unable to determine' ),
     611                                        'debug' => 'Unable to determine',
     612                                );
     613                        } else {
     614                                $formats = implode( ', ', $formats );
     615                                $info['wp-media']['fields']['imagick_file_formats'] = array(
     616                                        'label' => __( 'Imagick supported file formats' ),
     617                                        'value' => $formats,
     618                                        'debug' => $formats,
     619                                );
     620                        }
    600621                }
    601622
    602623                // Get GD information, if available.