Opened 11 years ago
Closed 11 years ago
#2699 closed defect (bug) (fixed)
Closed topics throw php notice in page title
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 2.6 | Priority: | low |
| Severity: | normal | Version: | 2.5.4 |
| Component: | Extend - BuddyPress | Keywords: | has-patch commit |
| Cc: |
Description
In debug mode (test site) the browser page title doesn't work with closed topics.
bbp_filter_modify_page_title queries only posts with 'post_status' => 'publish'.
Solution: Allow 'post_status' => array('publish','closed')
(includes/extend/buddypress/functions.php 127)
Attachments (1)
Change History (3)
Note: See
TracTickets for help on using
tickets.
Thanks wdfee, patch attached fixes this and includes support for topic statuses
publish,closed,spam,trash, andpending.Note: We should have been able to use
bbp_get_topic_statuses()for this but the current structure of that function needs to be modified to allow for this and is beyond the scope of this ticket.