WordPress.org

Make WordPress Core

Ticket #52603: 52603.diff

File 52603.diff, 614 bytes (added by Chouby, 7 months ago)
  • src/wp-admin/includes/image.php

    diff --git src/wp-admin/includes/image.php src/wp-admin/includes/image.php
    index 56b9c0a36f..c011ad8b47 100644
    function _wp_make_subsizes( $new_sizes, $file, $image_meta, $attachment_id ) { 
    470470 *
    471471 * @param int    $attachment_id Attachment Id to process.
    472472 * @param string $file          Filepath of the Attached image.
    473  * @return mixed Metadata for attachment.
     473 * @return array Metadata for attachment.
    474474 */
    475475function wp_generate_attachment_metadata( $attachment_id, $file ) {
    476476        $attachment = get_post( $attachment_id );