Changeset 2678 for trunk/bp-friends.php
- Timestamp:
- 02/11/2010 03:48:07 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/bp-friends.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-friends.php
r2656 r2678 594 594 } 595 595 596 /**597 * friends_filter_template_paths()598 *599 * Add fallback for the bp-sn-parent theme template locations used in BuddyPress versions600 * older than 1.2.601 *602 * @package BuddyPress Core603 */604 function friends_filter_template_paths() {605 if ( 'bp-sn-parent' != basename( TEMPLATEPATH ) && !defined( 'BP_CLASSIC_TEMPLATE_STRUCTURE' ) )606 return false;607 608 add_filter( 'friends_template_my_friends', create_function( '', 'return "friends/index";' ) );609 add_filter( 'friends_template_requests', create_function( '', 'return "friends/requests";' ) );610 }611 add_action( 'init', 'friends_filter_template_paths' );612 613 596 function friends_remove_data( $user_id ) { 614 597 BP_Friends_Friendship::delete_all_for_user($user_id);
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)