#2131 closed enhancement (worksforme)
If BuddyPress Page
Reported by: | thekmen | Owned by: | |
---|---|---|---|
Milestone: | 1.2.3 | Priority: | minor |
Severity: | Version: | ||
Component: | Keywords: | ||
Cc: | dave@… |
Description
Trying to convert WordPress themes to BuddyPress enabled themes, there is no easy way to check if you are viewing a current BuddyPress generated page or standard WordPress pages/posts.
$bp->current_component returns the WP page/archive slug when viewing standard WP pages/posts.
If we had is_bp_generated_page or something like that, we could include the required BuddyPress ajax, js & css only on required pages.
Change History (3)
Note: See
TracTickets for help on using
tickets.
Point of reference:
http://buddypress.org/forums/topic/converting-theme-how-to-load-buddypress-stuff-on-buddypress-pages-only
thekmen is experiencing a page-slug when returning $bp->current_component on a WP page.
This should return nothing, correct?
Need someone to confirm.