Make WordPress Core

Ticket #43624: 43624.patch

File 43624.patch, 936 bytes (added by desrosj, 7 years ago)
  • src/wp-admin/includes/image.php

     
    437437                }
    438438        }
    439439
     440        $exif = array();
     441       
    440442        /**
    441443         * Filters the image types to check for exif data.
    442444         *
     
    522524         *
    523525         * @since 2.5.0
    524526         * @since 4.4.0 The `$iptc` parameter was added.
     527         * @since 5.0.0 The `$exif` parameter was added.
    525528         *
    526529         * @param array  $meta            Image meta data.
    527530         * @param string $file            Path to image file.
    528531         * @param int    $sourceImageType Type of image.
    529532         * @param array  $iptc            IPTC data.
     533         * @param array  $exif            EXIF data.
    530534         */
    531         return apply_filters( 'wp_read_image_metadata', $meta, $file, $sourceImageType, $iptc );
     535        return apply_filters( 'wp_read_image_metadata', $meta, $file, $sourceImageType, $iptc, $exif );
    532536
    533537}
    534538