Make WordPress Core

Ticket #48477: 48477.diff

File 48477.diff, 753 bytes (added by GregLone, 7 years ago)
  • image.php

     
    399399
    400400        $new_sizes = array_filter( array_merge( $priority, $new_sizes ) );
    401401
     402        /**
     403         * Fires before creating image sub-sizes.
     404         *
     405         * @since 5.3.0
     406         *
     407         * @param array  $new_sizes     Array defining what sizes to create.
     408         * @param string $file          Full path to the image file.
     409         * @param array  $image_meta    The attachment meta data array.
     410         * @param int    $attachment_id Attachment Id to process.
     411         */
     412        do_action( 'wp_before_make_subsizes', $new_sizes, $file, $image_meta, $attachment_id );
     413
    402414        $editor = wp_get_image_editor( $file );
    403415
    404416        if ( is_wp_error( $editor ) ) {