Changeset 2678 for trunk/bp-xprofile.php
- Timestamp:
- 02/11/2010 03:48:07 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-xprofile.php
r2668 r2678 908 908 add_action( 'bp_activity_screen_single_activity_permalink', 'xprofile_remove_screen_notifications' ); 909 909 910 /**911 * xprofile_filter_template_paths()912 *913 * Add fallback for the bp-sn-parent theme template locations used in BuddyPress versions914 * older than 1.2.915 *916 * @package BuddyPress Core917 */918 function xprofile_filter_template_paths() {919 if ( 'bp-sn-parent' != basename( TEMPLATEPATH ) && !defined( 'BP_CLASSIC_TEMPLATE_STRUCTURE' ) )920 return false;921 922 add_filter( 'xprofile_template_display_profile', create_function( '', 'return "profile/index";' ) );923 add_filter( 'xprofile_template_edit_profile', create_function( '', 'return "profile/edit";' ) );924 add_filter( 'xprofile_template_change_avatar', create_function( '', 'return "profile/change-avatar";' ) );925 }926 add_action( 'init', 'xprofile_filter_template_paths' );927 910 928 911 /**
Note: See TracChangeset
for help on using the changeset viewer.