#2131 closed enhancement (worksforme)
If BuddyPress Page
| Reported by: | thekmen | Owned by: | |
|---|---|---|---|
| Priority: | minor | Milestone: | 1.2.3 |
| Component: | Version: | ||
| Severity: | 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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
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.