Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
4 changes: 2 additions & 2 deletions ui-definitions/settings-image.php
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@
array(
'type' => 'crops',
'slug' => 'crop_sizes',
'title' => __( 'Crop and Gravity control (beta)', 'cloudinary' ),
'title' => __( 'Crop and Gravity control', 'cloudinary' ),
'enabled' => static function () {
/**
* Enable the Crop and Gravity control settings.
Expand All @@ -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
4 changes: 2 additions & 2 deletions 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 All @@ -30,7 +30,7 @@
array(
'type' => 'on_off',
'slug' => 'enable_crop_and_gravity',
'title' => __( 'Crop and Gravity control (beta)', 'cloudinary' ),
'title' => __( 'Crop and Gravity control', 'cloudinary' ),
'tooltip_text' => __(
'Enable Crop and Gravity control for registered image sizes.',
'cloudinary'
Expand Down