Changeset 54086 for trunk/src/wp-admin/includes/image-edit.php
- Timestamp:
- 09/06/2022 09:13:17 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/image-edit.php
r53546 r54086 918 918 919 919 // Save the full-size file, also needed to create sub-sizes. 920 if ( ! wp_save_image_file( $new_path, $img, $post->post_mime_type, $post_id ) ) { 920 $saved = wp_save_image_file( $new_path, $img, $post->post_mime_type, $post_id ); 921 if ( ! $saved ) { 921 922 $return->error = esc_js( __( 'Unable to save the image.' ) ); 922 923 return $return; 923 924 } 925 $new_path = $saved['path']; 924 926 925 927 if ( 'nothumb' === $target || 'all' === $target || 'full' === $target || $scaled ) {
Note: See TracChangeset
for help on using the changeset viewer.