[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 14:22:22 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:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Core          |    Version:  2.1
 Severity:  major         |   Keywords:
--------------------------+-----------------------------
 Following change:
 https://github.com/buddypress/BuddyPress/commit/7ad29f96ce82be6533a7fe427f886602779e6409

 Is stopping plugin component directory templates from loading.

 ---------------

 This change has stopped our plugin component screens from loading
 correctly.

 We have a component using bp_core_load_template() to load it's directory
 page:
 bp_core_load_template( apply_filters(
 'document_repository_directory_template', 'a21-document-repository/index'
 ) );

 And in our theme, we have the template: /our-theme-dir/a21-document-
 repository/index.php

 The theme is not bp-default and not a derivative of it either. The theme
 creates a version of BP_Legacy in its buddypress-functions.php file.

 There are no filters being applied (i.e. no filters hooked on
 'document_repository_directory_template'.)


 As a result of this change -- attempts to load the template, result in the
 template not being set, and the correct template is not loaded.

 Is this something we need to change in our setup -- this is theme / plugin
 that's worked correctly since 1.6 through all upgrades until now. Or is
 your change in error, and not taking plugin templates into account
 correctly?

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


More information about the buddypress-trac mailing list