Skip to:
Content

bbPress.org

Opened 6 weeks ago

Last modified 6 weeks ago

#3626 new defect (bug)

bbp_pre_handle_404() return type may be incorrect

Reported by: ethitter's profile ethitter Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version:
Component: General Keywords: has-patch
Cc:

Description

When bbp_pre_handle_404() is triggered, it may override its return value to be null, though the Core filter expects a boolean. If a codebase enforces strict typing, the function causes a TypeError.

Attachments (1)

bbp_pre_handle_404.diff (601 bytes) - added by ethitter 6 weeks ago.

Download all attachments as: .zip

Change History (2)

#1 @ethitter
6 weeks ago

  • Keywords has-patch added

Attached patch corrects the return type without changing the overall behaviour of the function.

Note: See TracTickets for help on using tickets.