Make WordPress Core


Ignore:
Timestamp:
10/18/2018 04:14:41 AM (8 years ago)
Author:
SergeyBiryukov
Message:

Media: Pass EXIF data to the wp_read_image_metadata filter.

Props desrosj.
Merges [42879] to the 5.0 branch.
Fixes #43624.

Location:
branches/5.0
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/5.0

  • branches/5.0/src/wp-admin/includes/image.php

    r43749 r43750  
    421421        }
    422422
     423        $exif = array();
     424
    423425        /**
    424426         * Filters the image types to check for exif data.
    … …  
    508510         * @since 2.5.0
    509511         * @since 4.4.0 The `$iptc` parameter was added.
     512         * @since 5.0.0 The `$exif` parameter was added.
    510513         *
    511514         * @param array  $meta       Image meta data.
    … …  
    513516         * @param int    $image_type Type of image, one of the `IMAGETYPE_XXX` constants.
    514517         * @param array  $iptc       IPTC data.
     518         * @param array  $exif       EXIF data.
    515519         */
    516         return apply_filters( 'wp_read_image_metadata', $meta, $file, $image_type, $iptc );
     520        return apply_filters( 'wp_read_image_metadata', $meta, $file, $image_type, $iptc, $exif );
    517521
    518522}
Note: See TracChangeset for help on using the changeset viewer.