Skip to:
Content

bbPress.org

Opened 4 years ago

Closed 5 days ago

#3488 closed feature request (fixed)

No filter to disable single forum description exists

Reported by: naxoc Owned by: johnjamesjacoby
Priority: normal Milestone: 2.7
Component: Component - Forums Version:
Severity: normal Keywords:
Cc: naxoc

Description

There is currently no way to avoid calculating all the stats for the "This forum has x topics, x replies, and was last updated x mins by x." above forums. There is already a filter to _alter_ it, but no way to avoid doing all those calculations.

Well, yes. There is a way by removing the call to bbp_single_forum_description() from templates, but it would be nice to be able to filter if it should happen.

This patch adds a bbp_use_single_forum_description filter that is checked before starting calling the function that gathers the data.

Attachments (1)

3488.patch​ (628 bytes ) - added by naxoc 4 years ago.

Download all attachments as: .zip

Change History (4)

@naxoc
4 years ago

#1 @naxoc
4 years ago

  • Cc naxoc added

#2 @johnjamesjacoby
5 days ago

  • Milestone Awaiting Review → 2.7

#3 @johnjamesjacoby
5 days ago

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

In 7970:

Forums/Topics: Allow descriptions to be disabled.

Add early filters to the single-forum and single-topic description getters so extensions can skip topic, reply, voice, freshness, and author calculations when these descriptions are not needed. Preserve each existing output filter by passing an empty default through it when generation is disabled.

In trunk, for 2.7.

Props naxoc.
Fixes #3488, #3489.

Note: See TracTickets for help on using tickets.