From 8f3657fc724004cbaebe0da1d2ddafd8f9d75eca Mon Sep 17 00:00:00 2001 From: Marco Pereirinha Date: Mon, 18 Jan 2021 12:36:46 +0000 Subject: [PATCH] Add the default transformation crop for the Gallery --- php/media/class-gallery.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/php/media/class-gallery.php b/php/media/class-gallery.php index 09c33be6d..e1dde5b6d 100644 --- a/php/media/class-gallery.php +++ b/php/media/class-gallery.php @@ -65,6 +65,9 @@ class Gallery { 'mode' => 'classic', 'columns' => 1, ), + 'transformation' => array( + 'crop' => 'fill', + ), 'indicatorProps' => array( 'shape' => 'round' ), 'themeProps' => array( 'primary' => '#cf2e2e',