#3644 closed defect (bug) (fixed)
Private/Hidden enforcer functions may trigger PHP warnings
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 2.7 | Priority: | normal |
| Severity: | normal | Version: | 2.0 |
| Component: | Component - Forums | Keywords: | commit |
| Cc: |
Description
Seeing this in some logs:
E_WARNING: Attempt to read property "ID" on null in `wp-content/plugins/bbpress/includes/forums/functions.php:2481
After a bit of research, it's because of an intentionally loose is_singular() check in both bbp_forum_enforce_private() and bbp_forum_enforce_hidden() when weird query variables are requested that just happen to match a bbPress post type.
Change History (2)
Note: See
TracTickets for help on using
tickets.
In 7341: