Skip to:
Content

bbPress.org

Opened 5 weeks ago

Closed 5 weeks ago

#3700 closed defect (bug) (fixed)

Explicit topic tag is ignored in its edit link

Reported by: johnjamesjacoby Owned by: johnjamesjacoby
Priority: normal Milestone: 2.6.20
Component: Component - Topic Tags Version: 2.0
Severity: normal Keywords:
Cc:

Description

Create a topic tag with slug alpha, then call bbp_get_topic_tag_edit_link( 'alpha' ) outside a topic-tag query. The function resolves the alpha term but builds the URL with bbp_get_topic_tag_link() without passing the slug. With query-style URLs it returns ?edit=1 instead of the alpha tag edit URL; pretty URLs have the same missing-tag problem.

Pass the resolved tag slug to the topic-tag link helper for both permalink styles. Add PHPUnit coverage for explicit tags, missing tags, and both URL modes.

The bug is present in the bbPress 2.0 tag and branches/2.6. Fix in trunk and backport to branches/2.6 for 2.6.20. The broader topic-tag test work is tracked in #3695.

Change History (2)

#1 @johnjamesjacoby
5 weeks ago

In 7809:

Topic Tags: Respect explicit tags in edit links and descriptions.

Pass the resolved tag to edit-link generation for both permalink styles, and initialize the explicit tag before passing it to description filters. Add regression coverage for missing tags, output, permalink styles, and filter context.

In trunk, for 2.7.

See #3700.
See #3701.
See #3695.

#2 @johnjamesjacoby
5 weeks ago

  • Owner set to johnjamesjacoby
  • Resolution → fixed
  • Status new → closed

In 7810:

Topic Tags: Backport explicit tag fixes to 2.6.

Pass explicit topic tags to edit-link generation and description filters, with regression coverage for both behaviors.

In branches/2.6, for 2.6.20.

Fixes #3700.
Fixes #3701.

Note: See TracTickets for help on using tickets.