Changeset 57607
- Timestamp:
- 02/12/2024 11:24:19 PM (5 months ago)
- Location:
- trunk/src/wp-includes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-image-editor-gd.php
r57524 r57607 503 503 if ( ! $filename ) { 504 504 $filename = $this->generate_filename( null, null, $extension ); 505 506 507 508 509 505 510 } 506 511 -
trunk/src/wp-includes/class-wp-image-editor-imagick.php
r57524 r57607 490 490 } 491 491 } 492 493 if ( is_callable( array( $this->image, 'setInterlaceScheme' ) ) && defined( 'Imagick::INTERLACE_NO' ) ) {494 $this->image->setInterlaceScheme( Imagick::INTERLACE_NO );495 }496 492 } catch ( Exception $e ) { 497 493 return new WP_Error( 'image_resize_error', $e->getMessage() ); … … 826 822 } 827 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 828 841 $write_image_result = $this->write_image( $this->image, $filename ); 829 842 if ( is_wp_error( $write_image_result ) ) { … … 834 847 // Reset original format. 835 848 $this->image->setImageFormat( $orig_format ); 849 850 851 836 852 } catch ( Exception $e ) { 837 853 return new WP_Error( 'image_save_error', $e->getMessage(), $filename );
Note: See TracChangeset
for help on using the changeset viewer.