diff --git wp-includes/class-wp-image-editor-gd.php wp-includes/class-wp-image-editor-gd.php
index 3e7e43f..90ce4aa 100644
|
|
|
class WP_Image_Editor_GD extends WP_Image_Editor { |
| 192 | 192 | * @param int $src_h The height to crop. |
| 193 | 193 | * @param int $dst_w Optional. The destination width. |
| 194 | 194 | * @param int $dst_h Optional. The destination height. |
| 195 | | * @param int $src_abs Optional. If the source crop points are absolute. |
| | 195 | * @param boolean $src_abs Optional. If the source crop points are absolute. |
| 196 | 196 | * @return boolean|WP_Error |
| 197 | 197 | */ |
| 198 | 198 | public function crop( $src_x, $src_y, $src_w, $src_h, $dst_w = null, $dst_h = null, $src_abs = false ) { |
diff --git wp-includes/class-wp-image-editor-imagick.php wp-includes/class-wp-image-editor-imagick.php
index f7012d5..372ce47 100644
|
|
|
class WP_Image_Editor_Imagick extends WP_Image_Editor { |
| 243 | 243 | * @param int $src_h The height to crop. |
| 244 | 244 | * @param int $dst_w Optional. The destination width. |
| 245 | 245 | * @param int $dst_h Optional. The destination height. |
| 246 | | * @param int $src_abs Optional. If the source crop points are absolute. |
| | 246 | * @param boolean $src_abs Optional. If the source crop points are absolute. |
| 247 | 247 | * @return boolean|WP_Error |
| 248 | 248 | */ |
| 249 | 249 | public function crop( $src_x, $src_y, $src_w, $src_h, $dst_w = null, $dst_h = null, $src_abs = false ) { |
| 250 | | // Not sure this is compatible. |
| 251 | 250 | if ( $src_abs ) { |
| 252 | 251 | $src_w -= $src_x; |
| 253 | 252 | $src_h -= $src_y; |