Skip to content

Commit bb92b66

Browse files
committed
Activate Crop and Gravity
1 parent 0a69bf6 commit bb92b66

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
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: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@
211211
array(
212212
'type' => 'crops',
213213
'slug' => 'crop_sizes',
214-
'title' => __( 'Crop and Gravity control (beta)', 'cloudinary' ),
214+
'title' => __( 'Crop and Gravity control', 'cloudinary' ),
215215
'enabled' => static function () {
216216
/**
217217
* Enable the Crop and Gravity control settings.
@@ -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: 2 additions & 2 deletions
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(
@@ -30,7 +30,7 @@
3030
array(
3131
'type' => 'on_off',
3232
'slug' => 'enable_crop_and_gravity',
33-
'title' => __( 'Crop and Gravity control (beta)', 'cloudinary' ),
33+
'title' => __( 'Crop and Gravity control', 'cloudinary' ),
3434
'tooltip_text' => __(
3535
'Enable Crop and Gravity control for registered image sizes.',
3636
'cloudinary'

0 commit comments

Comments
 (0)