Skip to content

Commit c978f9e

Browse files
Merge pull request #1103 from cloudinary/feature/enable-crop-and-gravity
Activate Crop and Gravity
2 parents 1e3b0cb + fc9246b commit c978f9e

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

php/class-delivery.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1464,7 +1464,7 @@ public function parse_element( $element ) {
14641464
*
14651465
* @retrun {bool}
14661466
*/
1467-
$enabled_crop_gravity = apply_filters( 'cloudinary_enable_crop_and_gravity_control', false );
1467+
$enabled_crop_gravity = apply_filters( 'cloudinary_enable_crop_and_gravity_control', true );
14681468
$has_sized_transformation = $enabled_crop_gravity && ! empty( $config['crop_sizes'] );
14691469

14701470
$tag_element = array(

php/class-media.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1022,7 +1022,7 @@ public function get_crop_transformations( $attachment_id, $size ) {
10221022
*
10231023
* @retrun {bool}
10241024
*/
1025-
$enabled_crop_and_gravity = apply_filters( 'cloudinary_enable_crop_and_gravity_control', false );
1025+
$enabled_crop_and_gravity = apply_filters( 'cloudinary_enable_crop_and_gravity_control', true );
10261026

10271027
// Check for custom crop.
10281028
if ( is_numeric( $attachment_id ) && $enabled_crop_and_gravity ) {

ui-definitions/settings-image.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@
224224
*
225225
* @retrun {bool}
226226
*/
227-
return apply_filters( 'cloudinary_enable_crop_and_gravity_control', false );
227+
return apply_filters( 'cloudinary_enable_crop_and_gravity_control', true );
228228
},
229229
),
230230
),

ui-definitions/settings-metaboxes.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
*
1717
* @retrun {bool}
1818
*/
19-
if ( ! apply_filters( 'cloudinary_enable_crop_and_gravity_control', false ) ) {
19+
if ( ! apply_filters( 'cloudinary_enable_crop_and_gravity_control', true ) ) {
2020
return array();
2121
}
2222
$metaboxes = array(

0 commit comments

Comments
 (0)