| 1 | diff --git wp-includes/class-wp-image-editor-gd.php wp-includes/class-wp-image-editor-gd.php |
|---|
| 2 | index 3e7e43f..90ce4aa 100644 |
|---|
| 3 | --- wp-includes/class-wp-image-editor-gd.php |
|---|
| 4 | +++ wp-includes/class-wp-image-editor-gd.php |
|---|
| 5 | @@ -192,7 +192,7 @@ class WP_Image_Editor_GD extends WP_Image_Editor { |
|---|
| 6 | * @param int $src_h The height to crop. |
|---|
| 7 | * @param int $dst_w Optional. The destination width. |
|---|
| 8 | * @param int $dst_h Optional. The destination height. |
|---|
| 9 | - * @param int $src_abs Optional. If the source crop points are absolute. |
|---|
| 10 | + * @param boolean $src_abs Optional. If the source crop points are absolute. |
|---|
| 11 | * @return boolean|WP_Error |
|---|
| 12 | */ |
|---|
| 13 | public function crop( $src_x, $src_y, $src_w, $src_h, $dst_w = null, $dst_h = null, $src_abs = false ) { |
|---|
| 14 | diff --git wp-includes/class-wp-image-editor-imagick.php wp-includes/class-wp-image-editor-imagick.php |
|---|
| 15 | index f7012d5..372ce47 100644 |
|---|
| 16 | --- wp-includes/class-wp-image-editor-imagick.php |
|---|
| 17 | +++ wp-includes/class-wp-image-editor-imagick.php |
|---|
| 18 | @@ -243,11 +243,10 @@ class WP_Image_Editor_Imagick extends WP_Image_Editor { |
|---|
| 19 | * @param int $src_h The height to crop. |
|---|
| 20 | * @param int $dst_w Optional. The destination width. |
|---|
| 21 | * @param int $dst_h Optional. The destination height. |
|---|
| 22 | - * @param int $src_abs Optional. If the source crop points are absolute. |
|---|
| 23 | + * @param boolean $src_abs Optional. If the source crop points are absolute. |
|---|
| 24 | * @return boolean|WP_Error |
|---|
| 25 | */ |
|---|
| 26 | public function crop( $src_x, $src_y, $src_w, $src_h, $dst_w = null, $dst_h = null, $src_abs = false ) { |
|---|
| 27 | - // Not sure this is compatible. |
|---|
| 28 | if ( $src_abs ) { |
|---|
| 29 | $src_w -= $src_x; |
|---|
| 30 | $src_h -= $src_y; |
|---|