Skip to:
Content

bbPress.org

Opened 7 years ago

Closed 7 years ago

#2457 closed defect (fixed)

Shortcode bbp-single-view not working

Reported by: netweb Owned by: johnjamesjacoby
Milestone: 2.5 Priority: normal
Severity: normal Version: 2.4.1
Component: API - Shortcodes Keywords: needs-patch
Cc:

Description

Shortcode for 'Single View' [bbp-single-view id="A view slug"] is broken.

Repro:

  • Create a page and add shortcode [bbp-single-view id="popular"]
  • Returns results Oh bother! No topics were found here!
  • Expected results: The same output as returned for /forums/view/popular/

Change History (2)

#1 @johnjamesjacoby
7 years ago

  • Milestone changed from Awaiting Review to 2.5

Will take a look. Thanks for the report.

#2 @johnjamesjacoby
7 years ago

  • Owner set to johnjamesjacoby
  • Resolution set to fixed
  • Status changed from new to closed

In 5163:

Introduce current_view_id to bbPress class variables. Used when calling a topic view shortcode via bbp-single-view so subsequent calls to bbp_view_query are able to retrieve the $view_id via bbp_get_view_id() the same way bbp_get_topic_id() works. Fixes #2457.

Note: See TracTickets for help on using tickets.