Opened 13 years ago
Closed 13 years ago
#1689 closed defect (bug) (fixed)
Use of undefined constant bbp_get_closed_status_id
Reported by: | thenbrent | Owned by: | |
---|---|---|---|
Milestone: | 2.0.2 | Priority: | normal |
Severity: | normal | Version: | 2.0 |
Component: | Component - Topics | Keywords: | has-patch |
Cc: |
Description
When clicking "CLOSE" on a topic, I receive the following warning:
Notice: Use of undefined constant bbp_get_closed_status_id - assumed 'bbp_get_closed_status_id in .../wp-content/plugins/bbpress/bbp-includes/bbp-topic-functions.php on line 2403
Line 2403 shows the following:
if ( bbp_get_closed_status_id == $topic['post_status'] ) return false;
Where bbp_get_closed_status_id should be a function call:
if ( bbp_get_closed_status_id() == $topic['post_status'] ) return false;
Patch attached.
Attachments (1)
Change History (5)
Note: See
TracTickets for help on using
tickets.
(In [3611]) Add missing parenthesis in bbp_close_topic(). See #1689, props thebrent. (2.1)