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