WordPress.org

Make WordPress Core

Ticket #43458: 43458.patch

File 43458.patch, 746 bytes (added by remyvv, 22 months ago)
  • src/wp-admin/includes/image.php

    IDEA additional info:
    Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
    <+>UTF-8
     
    554554 * @return bool True if suitable, false if not suitable.
    555555 */
    556556function file_is_displayable_image( $path ) {
    557         $displayable_image_types = array( IMAGETYPE_GIF, IMAGETYPE_JPEG, IMAGETYPE_PNG, IMAGETYPE_BMP );
     557        $displayable_image_types = array( IMAGETYPE_GIF, IMAGETYPE_JPEG, IMAGETYPE_PNG, IMAGETYPE_BMP, IMAGETYPE_ICO );
    558558
    559559        $info = @getimagesize( $path );
    560560        if ( empty( $info ) ) {