| 1 | ### Eclipse Workspace Patch 1.0 |
|---|
| 2 | #P buddypress |
|---|
| 3 | Index: bp-wire/bp-wire-templatetags.php |
|---|
| 4 | =================================================================== |
|---|
| 5 | --- bp-wire/bp-wire-templatetags.php (revision 1865) |
|---|
| 6 | +++ bp-wire/bp-wire-templatetags.php (working copy) |
|---|
| 7 | @@ -151,7 +151,7 @@ |
|---|
| 8 | $bp_wire_can_post = $can_post; |
|---|
| 9 | $bp_wire_show_email_notify = $show_email_notify; |
|---|
| 10 | |
|---|
| 11 | - load_template( TEMPLATEPATH . '/wire/post-list.php' ); |
|---|
| 12 | + locate_template( array( '/wire/post-list.php' ), true ); |
|---|
| 13 | } |
|---|
| 14 | |
|---|
| 15 | function bp_wire_title() { |
|---|
| 16 | Index: bp-core/bp-core-templatetags.php |
|---|
| 17 | =================================================================== |
|---|
| 18 | --- bp-core/bp-core-templatetags.php (revision 1865) |
|---|
| 19 | +++ bp-core/bp-core-templatetags.php (working copy) |
|---|
| 20 | @@ -384,7 +384,7 @@ |
|---|
| 21 | } |
|---|
| 22 | |
|---|
| 23 | function bp_get_profile_header() { |
|---|
| 24 | - load_template( TEMPLATEPATH . '/profile/profile-header.php' ); |
|---|
| 25 | + locate_template( array( '/profile/profile-header.php' ), true ); |
|---|
| 26 | } |
|---|
| 27 | |
|---|
| 28 | function bp_exists( $component_name ) { |
|---|
| 29 | @@ -452,8 +452,7 @@ |
|---|
| 30 | } |
|---|
| 31 | |
|---|
| 32 | function bp_get_plugin_sidebar() { |
|---|
| 33 | - if ( file_exists(TEMPLATEPATH . '/plugin-sidebar.php') ) |
|---|
| 34 | - load_template( TEMPLATEPATH . '/plugin-sidebar.php' ); |
|---|
| 35 | + locate_template( array( '/plugin-sidebar.php' ), true ); |
|---|
| 36 | } |
|---|
| 37 | |
|---|
| 38 | function bp_is_blog_page() { |
|---|
| 39 | Index: bp-activity/bp-activity-templatetags.php |
|---|
| 40 | =================================================================== |
|---|
| 41 | --- bp-activity/bp-activity-templatetags.php (revision 1865) |
|---|
| 42 | +++ bp-activity/bp-activity-templatetags.php (working copy) |
|---|
| 43 | @@ -119,7 +119,7 @@ |
|---|
| 44 | $bp_activity_title = $title; |
|---|
| 45 | $bp_activity_no_activity = $no_activity; |
|---|
| 46 | |
|---|
| 47 | - load_template( TEMPLATEPATH . '/activity/activity-list.php' ); |
|---|
| 48 | + locate_template( array( '/activity/activity-list.php' ), true ); |
|---|
| 49 | } |
|---|
| 50 | |
|---|
| 51 | function bp_has_activities( $args = '' ) { |
|---|