#3644 closed defect (bug) (fixed)
Private/Hidden enforcer functions may trigger PHP warnings
| Reported by: | johnjamesjacoby | Owned by: | johnjamesjacoby |
|---|---|---|---|
| Priority: | normal | Milestone: | 2.7 |
| Component: | Component - Forums | Version: | 2.0 |
| Severity: | normal | 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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
In 7341: