Skip to:
Content

bbPress.org

Ticket #2515: 2515.diff

File 2515.diff, 1.5 KB (added by netweb, 7 years ago)
  • src/includes/replies/template.php

     
    16561656
    16571657                // Add $uri to the array, to be passed through the filter
    16581658                $r['uri'] = $uri;
    1659                 $retval   = $r['link_before'] . '<a href="' . esc_url( $r['uri'] ) . '" class="bbp-reply-to-link"' . $onclick . '>' . esc_html( $r['reply_text'] ) . '</a>' . $r['link_after'];
     1659                $retval   = $r['link_before'] . '<a href="' . esc_url( $r['uri'] ) . '" class="bbp-reply-to-link" rel="nofollow"' . $onclick . '>' . esc_html( $r['reply_text'] ) . '</a>' . $r['link_after'];
    16601660
    16611661                return apply_filters( 'bbp_get_reply_to_link', $retval, $r, $args );
    16621662        }
  • src/includes/topics/template.php

     
    29362936
    29372937                // Add $uri to the array, to be passed through the filter
    29382938                $r['uri'] = $uri;
    2939                 $retval   = $r['link_before'] . '<a href="' . esc_url( $r['uri'] ) . '" class="bbp-topic-reply-link">' . $r['reply_text'] . '</a>' . $r['link_after'];
     2939                $retval   = $r['link_before'] . '<a href="' . esc_url( $r['uri'] ) . '" class="bbp-topic-reply-link" rel="nofollow">' . $r['reply_text'] . '</a>' . $r['link_after'];
    29402940
    29412941                return apply_filters( 'bbp_get_topic_reply_link', $retval, $r, $args );
    29422942        }