WordPress.org

Make WordPress Core

Ticket #20432: 20432.2.patch

File 20432.2.patch, 711 bytes (added by SergeyBiryukov, 6 years ago)
  • wp-admin/includes/image.php

     
    3232 *
    3333 * @since 2.1.0
    3434 *
    35  * @param string|int $src_file The source file or Attachment ID.
     35 * @param string|int $src The source file or Attachment ID.
    3636 * @param int $src_x The start x position to crop from.
    3737 * @param int $src_y The start y position to crop from.
    3838 * @param int $src_w The width to crop.
     
    5555                        $src = wp_load_image( $src_file );
    5656                }
    5757        } else {
    58                 $src = wp_load_image( $src_file );
     58                $src = wp_load_image( $src );
    5959        }
    6060
    6161        if ( ! is_resource( $src ) )