Opened 5 weeks ago
Closed 5 weeks ago
#3701 closed defect (bug) (fixed)
Explicit topic tag description uses an undefined filter tag
| Reported by: | johnjamesjacoby | Owned by: | johnjamesjacoby |
|---|---|---|---|
| Priority: | normal | Milestone: | 2.6.20 |
| Component: | Component - Topic Tags | Version: | 2.6.0 |
| Severity: | normal | Keywords: | |
| Cc: |
Description
Create a topic tag with slug alpha and a description, then call bbp_get_topic_tag_description( array( 'tag' => 'alpha' ) ) outside a topic-tag query. The description renders, but the function passes an uninitialized $tag to the bbp_get_topic_tag_description filter. This produces an undefined-variable warning and gives filters the wrong tag context.
Initialize the tag from the parsed arguments before resolving the term, while preserving the queried-term fallback. Add PHPUnit coverage for the explicit tag, description output, and filter arguments.
The bug is present in the bbPress 2.6.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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
In 7809: