[buddypress-trac] [BuddyPress] #4639: Add template hierarchy support
buddypress-trac
noreply at wordpress.org
Thu Nov 1 22:43:53 UTC 2012
#4639: Add template hierarchy support
--------------------------+------------------------------
Reporter: DJPaul | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Theme | Version:
Severity: normal | Resolution:
Keywords: dev-feedback |
--------------------------+------------------------------
Changes (by r-a-y):
* keywords: => dev-feedback
Comment:
Paul, ran into a problem.
`bp_template_include_theme_supports()` is hooked to `"template_include"`,
which is too early to do any type of BP component `$x_template` global
checking like activity types, group info, etc.
bbPress works because it uses custom post types and the `$post` global is
already populated by then, but BP populates its component globals way
later in `"template_redirect"`.
So, right now, we are limited to user checks, which works for the members
component.
A workaround for groups is to check the `$bp->unfiltered_uri` combined
with action checks to add a group slug check. For activity permalink,
perhaps only do user checks and omit activity types.
Need some dev feedback before I proceed.
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/4639#comment:15>
BuddyPress <http://buddypress.org/>
BuddyPress
More information about the buddypress-trac
mailing list