Skip to content

Commit

Permalink
Merge pull request #2012 from Codeinwp/fix/issue-2009
Browse files Browse the repository at this point in the history
fix: button group breaking when nofollow isn't being used
  • Loading branch information
HardeepAsrani authored Dec 18, 2023
2 parents 86c8667 + 8a75aab commit 017dfa9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/blocks/blocks/button-group/button/save.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const Save = ({
<a
href={ attributes.link }
target={ attributes.newTab ? '_blank' : '_self' }
rel={ attributes.noFollow ? 'noopener noreferrer' : undefined }
rel={ attributes.noFollow ? 'noopener noreferrer' : 'noopener' }
className="wp-block-button__link"
>
{ ( 'left' === attributes.iconType || 'only' === attributes.iconType ) && (
Expand Down

0 comments on commit 017dfa9

Please sign in to comment.