Changeset 14105
- Timestamp:
- 04/16/2010 01:53:22 PM (16 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/media.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/media.php
r14035 r14105 377 377 * @param string $dest_path Optional. New image file path. 378 378 * @param int $jpeg_quality Optional, default is 90. Image quality percentage. 379 * @return mixed WP_Error on failure. String with new destination path. Array of dimensions from {@link image_resize_dimensions()}379 * @return mixed WP_Error on failure. String with new destination path. 380 380 */ 381 381 function image_resize( $file, $max_w, $max_h, $crop = false, $suffix = null, $dest_path = null, $jpeg_quality = 90 ) { … … 392 392 $dims = image_resize_dimensions($orig_w, $orig_h, $max_w, $max_h, $crop); 393 393 if ( !$dims ) 394 return $dims;394 return new WP_Error( 'error_getting_dimensions', __('Could not calculate resized image dimensions') ); 395 395 list($dst_x, $dst_y, $src_x, $src_y, $dst_w, $dst_h, $src_w, $src_h) = $dims; 396 396
Note: See TracChangeset
for help on using the changeset viewer.