Skip to content

Commit

Permalink
fix(wc-memberships): prevent RAS from hijacking WC for Teams links
Browse files Browse the repository at this point in the history
  • Loading branch information
adekbadek committed Nov 12, 2024
1 parent 63c78b2 commit 6903b64
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
5 changes: 5 additions & 0 deletions includes/reader-activation/class-reader-activation.php
Original file line number Diff line number Diff line change
Expand Up @@ -1482,6 +1482,11 @@ public static function render_third_party_auth() {
* @return string Filtered template path.
*/
public static function replace_woocommerce_auth_form( $template, $template_name ) {
// Allow template rewriting for `woocommerce-memberships-for-teams` plugin. This includes
// a link to join a team.
if ( is_int( stripos( $template, 'woocommerce-memberships-for-teams' ) ) ) {
return $template;
}
if ( 'myaccount/form-login.php' === $template_name ) {
$template = dirname( NEWSPACK_PLUGIN_FILE ) . '/includes/templates/reader-activation/login-form.php';
}
Expand Down
5 changes: 4 additions & 1 deletion includes/reader-revenue/my-account/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,10 @@
}
}


// Fixes an issue with form display caused by Newspack Theme CSS.
.entry-content p {
word-wrap: normal;
}
}

/* stylelint-disable-next-line */
Expand Down

0 comments on commit 6903b64

Please sign in to comment.