[buddypress-trac] [BuddyPress Trac] #5751: bp_is_current_component() fallback $page check breaks on certain custom components

buddypress-trac noreply at wordpress.org
Sat Jul 12 17:23:04 UTC 2014


#5751: bp_is_current_component() fallback $page check breaks on certain custom
components
--------------------------+-----------------
 Reporter:  boonebgorges  |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  low           |  Milestone:  2.1
Component:  Core          |    Version:
 Severity:  normal        |   Keywords:
--------------------------+-----------------
 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.

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/5751>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list