Opened 10 years ago
Closed 10 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 |
---|---|---|---|
Milestone: | 2.1 | Priority: | low |
Severity: | normal | Version: | |
Component: | Core | 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.
Change History (1)
Note: See
TracTickets for help on using
tickets.
In 8611: