[buddypress-trac] [BuddyPress] #2956: Use get_template_part instead of locate_template in BP Default
buddypress-trac at lists.automattic.com
buddypress-trac at lists.automattic.com
Sat Dec 18 12:43:05 UTC 2010
#2956: Use get_template_part instead of locate_template in BP Default
--------------------------+-----------------------------
Reporter: sorich87 | Owner: sorich87
Type: enhancement | Status: closed
Priority: normal | Milestone: Awaiting Review
Component: Theme | Version: 1.3
Resolution: duplicate | Keywords:
--------------------------+-----------------------------
Changes (by DJPaul):
* status: new => closed
* resolution: => duplicate
Comment:
Using that action and then terminating execution is a messy workaround. We
have ticket #2649 which covers this (and see #WP13239) that will let us
add template hierarchy support into BuddyPress, that's not going to make
it in until WordPrsss 3.2.
Replying to [comment:5 sorich87]:
> Yes you can load other files with the action but will you be able to
do anything to prevent locating the original file?
>
> Yes, I can hook into it with a custom function which will load the file
from my custom location using a modified version of locate_template, then
die() so that locate_template is never used.
--
Ticket URL: <http://trac.buddypress.org/ticket/2956#comment:8>
BuddyPress <http://buddypress.org/>
BuddyPress
More information about the buddypress-trac
mailing list