WordPress.org

Make WordPress Core

Ticket #35190: 35190.diff

File 35190.diff, 636 bytes (added by morganestes, 5 years ago)
  • src/wp-admin/includes/image.php

    diff --git src/wp-admin/includes/image.php src/wp-admin/includes/image.php
    index 139d405..84a0965 100644
    function wp_generate_attachment_metadata( $attachment_id, $file ) { 
    110110                 * Filter the image sizes automatically generated when uploading an image.
    111111                 *
    112112                 * @since 2.9.0
    113                  * @since 4.4.0 The `$metadata` argument was addeed
     113                 * @since 4.4.0 Added the `$metadata` argument.
    114114                 *
    115115                 * @param array $sizes    An associative array of image sizes.
    116116                 * @param array $metadata An associative array of image metadata: width, height, file.