2
0
Fork 0
mirror of https://github.com/discourse/wp-discourse.git synced 2025-10-03 08:59:21 +08:00

Add noreferrer noopener

This commit is contained in:
scossar 2020-08-08 13:39:55 -07:00
parent 6db99da45a
commit 0b9cd0d78e
No known key found for this signature in database
GPG key ID: B6C015388F1A4C52

View file

@ -237,7 +237,7 @@ class HTMLTemplates {
public static function discourse_topic_link( $new_tab ) {
if ( $new_tab ) {
?>
<a class="wpdc-discourse-topic-link" target="_blank" href="{topic_url}">{discourse_url_name}</a>
<a class="wpdc-discourse-topic-link" target="_blank" rel="noreferrer noopener" href="{topic_url}">{discourse_url_name}</a>
<?php
} else {
?>