Skip to:
Content

bbPress.org

Opened 7 months ago

Closed 7 months ago

#3605 closed defect (bug) (fixed)

Add post-state support for Forum & Topic archive pages

Reported by: johnjamesjacoby's profile johnjamesjacoby Owned by: johnjamesjacoby's profile johnjamesjacoby
Milestone: 2.7 Priority: normal
Severity: normal Version: 2.0
Component: General - Administration Keywords:
Cc:

Description

bbPress should filter display_post_states to indicate if a Page is being used as the root of a forum or topic archive.

Attachments (1)

jjj-2024-07-02-at-16-21-18-UTC@2x.png (211.6 KB) - added by johnjamesjacoby 7 months ago.

Download all attachments as: .zip

Change History (2)

#1 @johnjamesjacoby
7 months ago

  • Resolution set to fixed
  • Status changed from assigned to closed

In 7278:

Admin: add post-state support to admin-area list-tables

This change checks posts for shortcode usages and adds "state" labels for them, to help make Forum integration easier to identify from within the list table context (usually Pages, but currently not post-type specific).

It does this by introducing BBP_Admin::display_post_states() and hooking it in as a filter to display_post_states.

Committer note: get_page_by_path() would offer more precision but also be significantly more costly to call here, so instead there is a fuzzy match on post_name for the Forum & Topic Archive pages only.

Fixes #3605.

Note: See TracTickets for help on using tickets.