[buddypress-trac] [BuddyPress] #4755: Template stack: Address usage of bp_locate_template()

buddypress-trac noreply at wordpress.org
Mon Jan 7 21:46:39 UTC 2013


#4755: Template stack: Address usage of bp_locate_template()
--------------------------+--------------------------
 Reporter:  r-a-y         |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  1.7
Component:  Core          |    Version:  1.7
 Severity:  normal        |   Keywords:  dev-feedback
--------------------------+--------------------------
 If you use `bp_locate_template()` by itself, it will not see the custom
 directory locations (like 'buddypress' and 'community' as set in
 `bp_get_template_locations()`) because only `bp_get_template_part()` has a
 filter that is hooked in by `bp_add_template_locations()`.

 This is a problem in the current codebase as `bp_has_custom_signup_page()`
 and `bp_has_custom_activation_page()` both use `bp_locate_template()`.

 This leads to issues with the "Register" links in both single and
 multisite as BP does not hijack them as in previous BP releases.

 ----

 I listed a potential solution in the second patch of #4656.

 If that approach is not acceptable, then I believe we'll need a method
 that makes sure both `bp_get_template_part()` and `bp_locate_template()`
 references the same templates at all times.

 Let me know if I'm not being clear.

-- 
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/4755>
BuddyPress <http://buddypress.org/>
BuddyPress


More information about the buddypress-trac mailing list