Skip to content

Commit

Permalink
MU WPCOM: Only load ETK features for wpcom users (2nd try) (#38708)
Browse files Browse the repository at this point in the history
* MU WPCOM: Only load ETK features for wpcom users

* changelog

* Load etk features on frontend page
  • Loading branch information
arthur791004 authored Aug 5, 2024
1 parent e7b9b1d commit 5676d62
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: minor
Type: changed

MU WPCOM: Only load ETK features for wpcom users
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,10 @@ public static function load_wpcom_user_features() {
* Can be moved back to load_features() once the feature no longer exists in the ETK plugin.
*/
public static function load_etk_features() {
if ( is_admin() && ! is_wpcom_user() ) {
return;
}

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';
Expand Down

0 comments on commit 5676d62

Please sign in to comment.