Skip to:
Content

bbPress.org

Opened 6 years ago

Closed 6 years ago

#3188 closed defect (bug) (fixed)

Undefined variables in bbp_past_edit_lock()

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

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 6 years ago.

Download all attachments as: .zip

Change History (3)

@SergeyBiryukov
6 years ago

#1 @SergeyBiryukov
6 years ago

  • Description modified (diff)

#2 @johnjamesjacoby
6 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.