Skip to content

Commit

Permalink
Disable subscription modal for Atomic (#40240)
Browse files Browse the repository at this point in the history
  • Loading branch information
heavyweight authored and matticbot committed Nov 19, 2024
1 parent 4299036 commit 7d7b03d
Show file tree
Hide file tree
Showing 4 changed files with 88 additions and 86 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.

Original file line number Diff line number Diff line change
Expand Up @@ -585,7 +585,9 @@ public function should_load_gutenberg_comments() {
*/
public function should_show_subscription_modal() {
$modal_enabled = boolval( get_blog_option( $this->blog_id, 'jetpack_verbum_subscription_modal', true ) );
return ! is_user_member_of_blog( '', $this->blog_id ) && $modal_enabled;

$is_jetpack_site = 522232 === get_current_blog_id(); // Disable if verbum is served via 'jetpack.wordpress.com'
return ! $is_jetpack_site && ! is_user_member_of_blog( '', $this->blog_id ) && $modal_enabled;
}

/**
Expand Down
Loading

0 comments on commit 7d7b03d

Please sign in to comment.