Changeset 46565
- Timestamp:
- 10/21/2019 09:41:09 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/image.php
r46507 r46565 264 264 265 265 if ( ! is_wp_error( $resized ) ) { 266 // Append the threshold size to the image file name. It will look like "my-image- 2560.jpg".266 // Append the threshold size to the image file name. It will look like "my-image-scaled-2560.jpg". 267 267 // This doesn't affect the sub-sizes names as they are generated from the original image (for best quality). 268 $saved = $editor->save( $editor->generate_filename( $threshold ) );268 $saved = $editor->save( $editor->generate_filename( 'scaled-' . $threshold ) ); 269 269 270 270 if ( ! is_wp_error( $saved ) ) {
Note: See TracChangeset
for help on using the changeset viewer.