Changeset 31576
- Timestamp:
- 02/27/2015 07:37:47 PM (10 years ago)
- Location:
- trunk/src/wp-includes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-image-editor-gd.php
r31040 r31576 232 232 233 233 $image = $this->_resize( $size_data['width'], $size_data['height'], $size_data['crop'] ); 234 235 if( ! is_wp_error( $image ) ) { 234 $duplicate = ( ( $orig_size['width'] == $size_data['width'] ) && ( $orig_size['height'] == $size_data['height'] ) ); 235 236 if ( ! is_wp_error( $image ) && ! $duplicate ) { 236 237 $resized = $this->_save( $image ); 237 238 -
trunk/src/wp-includes/class-wp-image-editor-imagick.php
r31127 r31576 302 302 303 303 $resize_result = $this->resize( $size_data['width'], $size_data['height'], $size_data['crop'] ); 304 305 if( ! is_wp_error( $resize_result ) ) { 304 $duplicate = ( ( $orig_size['width'] == $size_data['width'] ) && ( $orig_size['height'] == $size_data['height'] ) ); 305 306 if ( ! is_wp_error( $resize_result ) && ! $duplicate ) { 306 307 $resized = $this->_save( $this->image ); 307 308
Note: See TracChangeset
for help on using the changeset viewer.