[buddypress-trac] [BuddyPress Trac] #5992: In `bp_core_load_template()`, save a `locate_template()` call change -- is stopping templates from loading

buddypress-trac noreply at wordpress.org
Wed Nov 5 19:16:54 UTC 2014

#5992: In `bp_core_load_template()`, save a `locate_template()` call change -- is
stopping templates from loading
 Reporter:  rogercoathup       |       Owner:
     Type:  defect (bug)       |      Status:  closed
 Priority:  normal             |   Milestone:
Component:  Core               |     Version:  2.1
 Severity:  major              |  Resolution:  invalid
 Keywords:  reporter-feedback  |
Changes (by r-a-y):

 * keywords:   => reporter-feedback
 * status:  new => closed
 * resolution:   => invalid
 * milestone:  Awaiting Review =>


 Sorry for the inconvenience, rogercoathup.

 `bp_core_load_template()` is really only supposed to support bp-default
 themes.  The commit that is referenced above is meant to save a
 `file_exists()` call and force developers to use theme compatibility.

 To use theme compatibility with your plugin, see how BP does it with the
 Members Directory in the `BP_Members_Theme_Compat` class:

 Check out line 296 in the `is_members()` class method as well as the
 `directory_template_hierarchy()`, `directory_dummy_post()` and
 `directory_content()` class methods for more info.

 You'll basically want to make a copy of the `BP_Members_Theme_Compat`
 class and modify it to suit your plugin's needs.

 In the meantime, I'm going to mark this as invalid, but feel free to
 comment for further feedback.

Ticket URL: <https://buddypress.trac.wordpress.org/ticket/5992#comment:1>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac

More information about the buddypress-trac mailing list