Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion php/class-delivery.php
Original file line number Diff line number Diff line change
Expand Up @@ -1464,7 +1464,7 @@ public function parse_element( $element ) {
*
* @retrun {bool}
*/
$enabled_crop_gravity = apply_filters( 'cloudinary_enable_crop_and_gravity_control', false );
$enabled_crop_gravity = apply_filters( 'cloudinary_enable_crop_and_gravity_control', true );
$has_sized_transformation = $enabled_crop_gravity && ! empty( $config['crop_sizes'] );

$tag_element = array(
Expand Down
2 changes: 1 addition & 1 deletion php/class-media.php
Original file line number Diff line number Diff line change
Expand Up @@ -1022,7 +1022,7 @@ public function get_crop_transformations( $attachment_id, $size ) {
*
* @retrun {bool}
*/
$enabled_crop_and_gravity = apply_filters( 'cloudinary_enable_crop_and_gravity_control', false );
$enabled_crop_and_gravity = apply_filters( 'cloudinary_enable_crop_and_gravity_control', true );

// Check for custom crop.
if ( is_numeric( $attachment_id ) && $enabled_crop_and_gravity ) {
Expand Down
2 changes: 1 addition & 1 deletion ui-definitions/settings-image.php
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@
*
* @retrun {bool}
*/
return apply_filters( 'cloudinary_enable_crop_and_gravity_control', false );
return apply_filters( 'cloudinary_enable_crop_and_gravity_control', true );
},
),
),
Expand Down
2 changes: 1 addition & 1 deletion ui-definitions/settings-metaboxes.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* @retrun {bool}
*/
if ( ! apply_filters( 'cloudinary_enable_crop_and_gravity_control', false ) ) {
if ( ! apply_filters( 'cloudinary_enable_crop_and_gravity_control', true ) ) {
return array();
}
$metaboxes = array(
Expand Down