diff --git a/wp-admin/includes/image.php b/wp-admin/includes/image.php index 2818b3dd5d..136f6dcdab 100644 --- a/wp-admin/includes/image.php +++ b/wp-admin/includes/image.php @@ -63,6 +63,10 @@ function wp_crop_image( $src, $src_x, $src_y, $src_w, $src_h, $dst_w, $dst_h, $s return $result; } + if ( ! empty( $result['path'] ) ) { + return $result['path']; + } + return $dst_file; } diff --git a/wp-includes/version.php b/wp-includes/version.php index ceaab58634..8a7e61e056 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.0-beta3-53291'; +$wp_version = '6.0-beta3-53292'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.