Changeset 5897
- Timestamp:
- 03/09/2012 04:04:35 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core/bp-core-avatars.php
r5844 r5897 735 735 $basedir = BP_AVATAR_UPLOAD_PATH; 736 736 } else { 737 if ( !bp_is_root_blog() ) { 738 // Switch dynamically in order to support BP_ENABLE_MULTIBLOG 739 switch_to_blog( bp_get_root_blog_id() ); 740 } 741 737 742 // Get upload directory information from current site 738 743 $upload_dir = wp_upload_dir(); … … 744 749 } else { 745 750 $basedir = $upload_dir['basedir']; 746 747 // If multisite, and current blog does not match root blog, make adjustments748 if ( is_multisite() && bp_get_root_blog_id() != get_current_blog_id() )749 $basedir = get_blog_option( bp_get_root_blog_id(), 'upload_path' );750 751 } 752 753 // Will bail if not switched 754 restore_current_blog(); 751 755 } 752 756
Note: See TracChangeset
for help on using the changeset viewer.