Skip to:
Content

bbPress.org

Opened 7 years ago

Closed 7 years ago

#2932 closed enhancement (fixed)

Add debug trace to `bbp_setup_current_user()` notice.

Reported by: netweb's profile netweb Owned by: netweb's profile netweb
Milestone: 2.6 Priority: high
Severity: normal Version: 2.1
Component: General Keywords: has-patch commit
Cc:

Description

Previously: #2309, #2837, and #2412 (And a dozen or so other duplicate tickets)

Via #BuddyPress6589/buddypress:changeset:10709

Core: Add debug trace to bp_setup_current_user() notice.
Previously, the bp_setup_current_user was called incorrectly notice
would not output any useful info for developers.
This commit adds a debug trace so developers are able to determine
whereabouts in the codebase this notice is originating from.

We should add this same functionality to bbPress

Attachments (1)

2932.diff (908 bytes) - added by netweb 7 years ago.

Download all attachments as: .zip

Change History (6)

@netweb
7 years ago

#1 @johnjamesjacoby
7 years ago

  • Keywords commit added
  • Priority changed from normal to high
  • Type changed from defect to enhancement
  • Version set to 2.1

Yes! I don't know how many times I've thought about this, without making the ticket to do so.

#2 follow-up: @johnjamesjacoby
7 years ago

There is also a wp_debug_backtrace() style function we might be able to use for this.

#3 @netweb
7 years ago

Also, tweaking the verbiage slightly per the BP ticket

#4 in reply to: ↑ 2 @netweb
7 years ago

Replying to johnjamesjacoby:

There is also a wp_debug_backtrace() style function we might be able to use for this.

If someone wants to change the string or add wp_debug_backtrace() then create a new ticket please.

#5 @netweb
7 years ago

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

In 6046:

General: Add debug trace to bbp_setup_current_user() notice.

Previously, the bbp_setup_current_user was called incorrectly notice would not output any useful info for developers.

This commit adds a debug trace so developers are able to determine
whereabouts in the codebase this notice is originating from.

Props r-a-y
Fixes #2932

Note: See TracTickets for help on using tickets.