Skip to:

Opened 3 years ago

Closed 3 years ago

#3188 closed defect (fixed)

Undefined variables in bbp_past_edit_lock()

Reported by: SergeyBiryukov Owned by: johnjamesjacoby
Milestone: 2.6 Priority: normal
Severity: normal Version:
Component: General - Content Creation Keywords: has-patch

Description (last modified by SergeyBiryukov)

$cur_time and $lock_time are passed to the bbp_past_edit_lock filter, but are only defined inside a conditional, leading to notices if the condition is not satisfied:

Notice: Undefined variable: cur_time in bbpress/includes/common/functions.php on line 208
Notice: Undefined variable: lock_time in bbpress/includes/common/functions.php on line 208

Attachments (1)

3188.patch (1.3 KB) - added by SergeyBiryukov 3 years ago.

Download all attachments as: .zip

Change History (3)

3 years ago

#1 @SergeyBiryukov
3 years ago

  • Description modified (diff)

#2 @johnjamesjacoby
3 years ago

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

In 6782:

Common: avoid debug notices in bbp_past_edit_lock().

Props SergeyBiryukov. Fixes #3188.

Note: See TracTickets for help on using tickets.