Opened 8 years ago
Closed 8 years ago
#3193 closed defect (bug) (fixed)
BuddyPress: Use custom includes() method
| Reported by: | r-a-y | Owned by: | johnjamesjacoby |
|---|---|---|---|
| Priority: | normal | Milestone: | 2.6 |
| Component: | Extend - BuddyPress | Version: | 2.1 |
| Severity: | normal | Keywords: | has-patch |
| Cc: |
Description
For BuddyPress support, bbPress extends the BP_Component class.
However, with the way the BP_Component::includes() method is coded and how bbPress has its BuddyPress file structure, on every pageload, there are 15 is_file() checks that fail for the BBP_Forums_Component() class:
https://buddypress.trac.wordpress.org/browser/tags/2.9.3/src/bp-core/classes/class-bp-component.php?marks=366-374,378#L355
Attached patch fixes this by adding our own includes() routine instead of inheriting BP's one.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
In 6807: