Skip to content

Commit

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

* changelog

Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/10242265996

Upstream-Ref: Automattic/jetpack@d5943b3
  • Loading branch information
arthur791004 authored and matticbot committed Aug 5, 2024
1 parent 2fb2832 commit b87fb84
Show file tree
Hide file tree
Showing 5 changed files with 90 additions and 85 deletions.
58 changes: 29 additions & 29 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions vendor/automattic/jetpack-mu-wpcom/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ This is an alpha version! The changes listed here are not final.

### Changed
- Add description link to Subscriber Login block
- MU WPCOM: Only load ETK features for wpcom users

### Removed
- Removed dead CSS code
Expand Down
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_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
Loading

0 comments on commit b87fb84

Please sign in to comment.