[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 11:23:04 UTC 2010


#2956: Use get_template_part instead of locate_template in BP Default
--------------------------+-----------------------------
  Reporter:  sorich87     |      Owner:  sorich87
      Type:  enhancement  |     Status:  new
  Priority:  normal       |  Milestone:  Awaiting Review
 Component:  Theme        |    Version:  1.3
Resolution:               |   Keywords:
--------------------------+-----------------------------

Comment (by sorich87):

 get_template_part too, does not allow filtering and does nothing other
 than using locate_template.

 This is not true. There is an action in get template part
 'get_template_part_{$slug}' which allows filtering.

   Further, It is not flexible enough to allow you load the files from sub
 directory ?

 No, it is not flexible at all. What if don't want to load files from sub
 directories but from locations other than the theme directory?
 locate_template can't do that. See the following ticket on the WordPress
 trac #WP13239.

-- 
Ticket URL: <https://trac.buddypress.org/ticket/2956#comment:3>
BuddyPress <http://buddypress.org/>
BuddyPress


More information about the buddypress-trac mailing list