Make WordPress Core

Ticket #57775: 57775.diff

File 57775.diff, 669 bytes (added by Howdy_McGee, 2 years ago)

Action Hook switched to Filter Hook.

  • src/wp-admin/includes/class-custom-image-header.php

     
    876876                         * @param string $file          Path to the file.
    877877                         * @param int    $attachment_id Attachment ID.
    878878                         */
    879                         do_action( 'wp_create_file_in_uploads', $file, $attachment_id ); // For replication.
     879                        $file = apply_filters( 'wp_create_file_in_uploads', $file, $attachment_id ); // For replication.
    880880
    881881                        return $this->finished();
    882882                } elseif ( $width > $max_width ) {