Skip to content

Commit 872304d

Browse files
authored
Revert "Verbum: Bypass subscription modal for WordPress subdomains" (#35597)
1 parent 78a7a2f commit 872304d

File tree

2 files changed

+0
-13
lines changed

2 files changed

+0
-13
lines changed

projects/packages/jetpack-mu-wpcom/changelog/fix-verbum-wordpress-subdomain-comment-post

-4
This file was deleted.

projects/packages/jetpack-mu-wpcom/src/features/verbum-comments/class-verbum-comments.php

-9
Original file line numberDiff line numberDiff line change
@@ -585,15 +585,6 @@ public function should_load_gutenberg_comments() {
585585
* Check if we should show the subscription modal.
586586
*/
587587
public function should_show_subscription_modal() {
588-
// Do not display subscription modal for WordPress.com subdomain sites.
589-
if ( defined( 'WPCOM_SUBDIR_SUBDOMAIN_BLOG_IDS_TO_REDIRECT' ) && defined( 'JETPACKCOM_BLOG_BLOG_IDS' ) ) {
590-
$blogs_to_redirect = array_merge( WPCOM_SUBDIR_SUBDOMAIN_BLOG_IDS_TO_REDIRECT, JETPACKCOM_BLOG_BLOG_IDS );
591-
592-
if ( in_array( get_current_blog_id(), $blogs_to_redirect, true ) ) {
593-
return false;
594-
}
595-
}
596-
597588
$modal_enabled = get_option( 'jetpack_verbum_subscription_modal', true );
598589
return ! is_user_member_of_blog( '', $this->blog_id ) && $modal_enabled;
599590
}

0 commit comments

Comments
 (0)