Changeset 2168 for trunk/bp-xprofile.php
- Timestamp:
- 12/14/2009 03:24:05 PM (16 years ago)
- File:
-
- 1 edited
-
trunk/bp-xprofile.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-xprofile.php
r2088 r2168 12 12 require ( BP_PLUGIN_DIR . '/bp-xprofile/bp-xprofile-notifications.php' ); 13 13 require ( BP_PLUGIN_DIR . '/bp-xprofile/bp-xprofile-cssjs.php' ); 14 15 /* Include deprecated functions if settings allow */16 if ( !defined( 'BP_IGNORE_DEPRECATED' ) )17 require ( BP_PLUGIN_DIR . '/bp-xprofile/deprecated/bp-xprofile-deprecated.php' );18 14 19 15 /* Assign the base group and fullname field names to constants to use in SQL statements */ … … 296 292 297 293 do_action( 'xprofile_screen_display_profile', $_GET['new'] ); 298 bp_core_load_template( apply_filters( 'xprofile_template_display_profile', ' profile/index' ) );294 bp_core_load_template( apply_filters( 'xprofile_template_display_profile', 'members/single/profile' ) ); 299 295 } 300 296 … … 376 372 377 373 do_action( 'xprofile_screen_edit_profile' ); 378 bp_core_load_template( apply_filters( 'xprofile_template_edit_profile', ' profile/edit' ) );374 bp_core_load_template( apply_filters( 'xprofile_template_edit_profile', 'members/single/profile' ) ); 379 375 } 380 376 … … 426 422 do_action( 'xprofile_screen_change_avatar' ); 427 423 428 bp_core_load_template( apply_filters( 'xprofile_template_change_avatar', ' profile/change-avatar' ) );424 bp_core_load_template( apply_filters( 'xprofile_template_change_avatar', 'members/single/profile' ) ); 429 425 } 430 426 … … 1107 1103 1108 1104 /** 1105 * xprofile_filter_template_paths() 1106 * 1107 * Add fallback for the bp-sn-parent theme template locations used in BuddyPress versions 1108 * older than 1.2. 1109 * 1110 * @package BuddyPress Core 1111 */ 1112 function xprofile_filter_template_paths() { 1113 if ( 'bp-sn-parent' != basename( TEMPLATEPATH ) && !defined( 'BP_CLASSIC_TEMPLATE_STRUCTURE' ) ) 1114 return false; 1115 1116 add_filter( 'xprofile_template_display_profile', create_function( '', 'return "profile/index";' ) ); 1117 add_filter( 'xprofile_template_edit_profile', create_function( '', 'return "profile/edit";' ) ); 1118 add_filter( 'xprofile_template_change_avatar', create_function( '', 'return "profile/change-avatar";' ) ); 1119 } 1120 add_action( 'init', 'xprofile_filter_template_paths' ); 1121 1122 /** 1109 1123 * xprofile_remove_data_on_user_deletion() 1110 1124 *
Note: See TracChangeset
for help on using the changeset viewer.