Changeset 2678 for trunk/bp-activity.php
- Timestamp:
- 02/11/2010 03:48:07 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-activity.php
r2668 r2678 1064 1064 } 1065 1065 1066 /**1067 * bp_activity_filter_template_paths()1068 *1069 * Add fallback for the bp-sn-parent theme template locations used in BuddyPress versions1070 * older than 1.2.1071 *1072 * @package BuddyPress Core1073 */1074 function bp_activity_filter_template_paths() {1075 if ( 'bp-sn-parent' != basename( TEMPLATEPATH ) && !defined( 'BP_CLASSIC_TEMPLATE_STRUCTURE' ) )1076 return false;1077 1078 add_filter( 'bp_activity_template_my_activity', create_function( '', 'return "activity/just-me";' ) );1079 add_filter( 'bp_activity_template_friends_activity', create_function( '', 'return "activity/my-friends";' ) );1080 add_filter( 'bp_activity_template_profile_activity_permalink', create_function( '', 'return "activity/single";' ) );1081 }1082 add_action( 'widgets_init', 'bp_activity_filter_template_paths' );1083 1084 1066 function bp_activity_remove_data( $user_id ) { 1085 1067 // Clear the user's activity from the sitewide stream and clear their activity tables
Note: See TracChangeset
for help on using the changeset viewer.