Make WordPress Core

Changeset 42879


Ignore:
Timestamp:
03/25/2018 08:44:16 PM (9 years ago)
Author:
SergeyBiryukov
Message:

Media: Pass EXIF data to the wp_read_image_metadata filter.

Props desrosj.
Fixes #43624.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/image.php

    r42878 r42879  
    438438        }
    439439
     440        $exif = array();
     441
    440442        /**
    441443         * Filters the image types to check for exif data.
    … …  
    525527         * @since 2.5.0
    526528         * @since 4.4.0 The `$iptc` parameter was added.
     529         * @since 5.0.0 The `$exif` parameter was added.
    527530         *
    528531         * @param array  $meta       Image meta data.
    … …  
    530533         * @param int    $image_type Type of image, one of the `IMAGETYPE_XXX` constants.
    531534         * @param array  $iptc       IPTC data.
     535         * @param array  $exif       EXIF data.
    532536         */
    533         return apply_filters( 'wp_read_image_metadata', $meta, $file, $image_type, $iptc );
     537        return apply_filters( 'wp_read_image_metadata', $meta, $file, $image_type, $iptc, $exif );
    534538
    535539}
Note: See TracChangeset for help on using the changeset viewer.