Opened 12 years ago
Closed 12 years ago
#5751 closed defect (bug) (fixed)
bp_is_current_component() fallback $page check breaks on certain custom components
| Reported by: | boonebgorges | Owned by: | boonebgorges |
|---|---|---|---|
| Priority: | low | Milestone: | 2.1 |
| Component: | Core | Version: | |
| Severity: | normal | Keywords: | |
| Cc: |
Description
When combining custom post type archives with custom BuddyPress components, the page template fallback checks in bp_is_current_component() can fail improperly. There, we get the current "page" with get_queried_object(). But in the case of an archive, the return value will not have an ID. Thus, we should check for the existence of the ID property before looking for a corresponding page template.
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
In 8611: