[buddypress-trac] [BuddyPress Trac] #6914: bp_locate_template() in WordPress Administration

buddypress-trac noreply at wordpress.org
Thu May 12 18:05:28 UTC 2016

#6914: bp_locate_template() in WordPress Administration
 Reporter:  imath         |       Owner:  DJPaul
     Type:  task          |      Status:  closed
 Priority:  normal        |   Milestone:  2.6
Component:  API           |     Version:
 Severity:  normal        |  Resolution:  fixed
 Keywords:  dev-feedback  |
Changes (by djpaul):

 * status:  assigned => closed
 * resolution:   => fixed


 In [changeset:"10746"]:
 #!CommitTicketReference repository="" revision="10746"
 Core: modify `bp_locate_template()` to support loading templates in code
 executed inside the wp-admin scope.

 The recent Emails and Avatars changes showed a weakness in the function
 where we were unable to load BuddyPress templates inside wp-admin because
 the constants `WP_USE_THEMES` and `DOING_AJAX` are falsey. These checks
 were introduced in r7842 and r7837, seemingly to prevent errors during
 PHPUnit runs.

 As our test environment has improved over the intervening years and
 because none of our tests are currently producing errors when these checks
 are removed, we can safely revert them and give ourselves a more flexible

 Fixes #6914

 Props DJPaul, imath

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

More information about the buddypress-trac mailing list