| 1 | Index: wp-includes/media.php |
|---|
| 2 | =================================================================== |
|---|
| 3 | --- wp-includes/media.php (revision 18856) |
|---|
| 4 | +++ wp-includes/media.php (working copy) |
|---|
| 5 | @@ -381,7 +381,8 @@ |
|---|
| 6 | |
|---|
| 7 | // the return array matches the parameters to imagecopyresampled() |
|---|
| 8 | // int dst_x, int dst_y, int src_x, int src_y, int dst_w, int dst_h, int src_w, int src_h |
|---|
| 9 | - return array( 0, 0, (int) $s_x, (int) $s_y, (int) $new_w, (int) $new_h, (int) $crop_w, (int) $crop_h ); |
|---|
| 10 | + $return = array( 0, 0, (int) $s_x, (int) $s_y, (int) $new_w, (int) $new_h, (int) $crop_w, (int) $crop_h ); |
|---|
| 11 | + return apply_filters('image_resize_dimensions', $return, compact('orig_w', 'orig_h', 'dest_w', 'dest_h', 'crop')); |
|---|
| 12 | |
|---|
| 13 | } |
|---|
| 14 | |
|---|