Skip to content

Commit

Permalink
Look for the data attributes on the right element (#14809)
Browse files Browse the repository at this point in the history
  • Loading branch information
scruffian authored Feb 26, 2020
1 parent fc610d0 commit ef7b163
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extensions/blocks/recurring-payments/view.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ function activateSubscription( block, blogId, planId, lang ) {

const initializeMembershipButtonBlocks = () => {
const membershipButtonBlocks = Array.prototype.slice.call(
document.querySelectorAll( '.' + blockClassName )
document.querySelectorAll( '.' + blockClassName + ' a' )
);
membershipButtonBlocks.forEach( block => {
const blogId = block.getAttribute( 'data-blog-id' );
Expand Down

0 comments on commit ef7b163

Please sign in to comment.