Skip to:
Content

bbPress.org

Opened 3 years ago

Closed 3 years ago

#3404 closed defect (bug) (duplicate)

Extra Quotation Mark outputted in bbp_make_mentions_clickable_callback

Reported by: comminski's profile comminski Owned by:
Milestone: Priority: normal
Severity: minor Version: 2.6.5
Component: API - Actions/Filters Keywords:
Cc:

Description

On line 510 of bbpress/includes/common/formatting.php, there seems to be an extra quote, I think you can just remove this

<?php
        $html   = '<a href="%1$s"' . $class . '">%2$s</a>';
        $html   = '<a href="%1$s"' . $class . '>%2$s</a>';

The problem I had was when I went to use the strip_tags function on the html of a topic or reply, it returned an empty string because this mentions anchor link had the extra comma, so the html markup wasn't correct.

Change History (1)

#1 @johnjamesjacoby
3 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to duplicate
  • Status changed from new to closed

Hey @comminski thanks for the ticket!

Looks like this was fixed in #3390, and will be included in the next releases.

Note: See TracTickets for help on using tickets.