Skip to:
Content

bbPress.org

Opened 12 years ago

Closed 12 years ago

#1689 closed defect (bug) (fixed)

Use of undefined constant bbp_get_closed_status_id

Reported by: thenbrent's profile 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)

bbp-topic-functions.diff (464 bytes) - added by thenbrent 12 years ago.

Download all attachments as: .zip

Change History (5)

#1 @thenbrent
12 years ago

  • Severity changed from major to normal

#2 @johnjamesjacoby
12 years ago

  • Milestone changed from Awaiting Review to 2.0.2

#3 @johnjamesjacoby
12 years ago

(In [3611]) Add missing parenthesis in bbp_close_topic(). See #1689, props thebrent. (2.1)

#4 @johnjamesjacoby
12 years ago

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

(In [3612]) Add missing parenthesis in bbp_close_topic(). Fixes #1689, props thebrent. (2.0)

Note: See TracTickets for help on using tickets.