From ca355dacf1daccce58d362bc72c096211e85f9b7 Mon Sep 17 00:00:00 2001 From: arthur791004 Date: Fri, 12 Jul 2024 12:33:35 +0900 Subject: [PATCH] MU WPCOM: Enable the custom-line-height feature for classic theme by default (#38317) * MU WPCOM: Enable the custom-line-height feature by default * changelog --- .../changelog/mu-wpcom-custom-line-height | 4 ++++ .../src/class-jetpack-mu-wpcom.php | 1 + .../block-editor/custom-line-height.php | 22 +++++++++++++++++++ 3 files changed, 27 insertions(+) create mode 100644 projects/packages/jetpack-mu-wpcom/changelog/mu-wpcom-custom-line-height create mode 100644 projects/packages/jetpack-mu-wpcom/src/features/block-editor/custom-line-height.php diff --git a/projects/packages/jetpack-mu-wpcom/changelog/mu-wpcom-custom-line-height b/projects/packages/jetpack-mu-wpcom/changelog/mu-wpcom-custom-line-height new file mode 100644 index 0000000000000..cdf56cb51b419 --- /dev/null +++ b/projects/packages/jetpack-mu-wpcom/changelog/mu-wpcom-custom-line-height @@ -0,0 +1,4 @@ +Significance: minor +Type: added + +MU WPCOM: Enable the custom-line-height feature by default diff --git a/projects/packages/jetpack-mu-wpcom/src/class-jetpack-mu-wpcom.php b/projects/packages/jetpack-mu-wpcom/src/class-jetpack-mu-wpcom.php index 661177d160149..2532fa9ce98df 100644 --- a/projects/packages/jetpack-mu-wpcom/src/class-jetpack-mu-wpcom.php +++ b/projects/packages/jetpack-mu-wpcom/src/class-jetpack-mu-wpcom.php @@ -132,6 +132,7 @@ public static function load_features() { * Can be moved back to load_features() once the feature no longer exists in the ETK plugin. */ public static function load_etk_features() { + require_once __DIR__ . '/features/block-editor/custom-line-height.php'; require_once __DIR__ . '/features/block-inserter-modifications/block-inserter-modifications.php'; require_once __DIR__ . '/features/hide-homepage-title/hide-homepage-title.php'; require_once __DIR__ . '/features/jetpack-global-styles/class-global-styles.php'; diff --git a/projects/packages/jetpack-mu-wpcom/src/features/block-editor/custom-line-height.php b/projects/packages/jetpack-mu-wpcom/src/features/block-editor/custom-line-height.php new file mode 100644 index 0000000000000..5842ceddfc0ae --- /dev/null +++ b/projects/packages/jetpack-mu-wpcom/src/features/block-editor/custom-line-height.php @@ -0,0 +1,22 @@ +