Skip to content

Commit

Permalink
Add rel="nofollow noreferrer noopener" to amp-wp.org link in form sub…
Browse files Browse the repository at this point in the history
…mission message
  • Loading branch information
westonruter committed Apr 21, 2021
1 parent 8db37c3 commit 4e91000
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions includes/sanitizers/class-amp-form-sanitizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,7 @@ public function ensure_response_message_elements( $form ) {
$link = $this->dom->createElement( 'a' );
$link->setAttribute( 'href', 'https://amp-wp.org/?p=5463' );
$link->setAttribute( 'target', '_blank' );
$link->setAttribute( 'rel', 'nofollow noreferrer noopener' );
$link->appendChild( $this->dom->createTextNode( __( 'Learn More', 'amp' ) ) );
$small->appendChild( $link );
$p->appendChild( $small );
Expand Down

0 comments on commit 4e91000

Please sign in to comment.