Changeset 5898 for branches/1.5/bp-core/bp-core-avatars.php
- Timestamp:
- 03/09/2012 04:05:59 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/1.5/bp-core/bp-core-avatars.php
r5626 r5898 663 663 $basedir = BP_AVATAR_UPLOAD_PATH; 664 664 } else { 665 if ( !bp_is_root_blog() ) { 666 // Switch dynamically in order to support BP_ENABLE_MULTIBLOG 667 switch_to_blog( bp_get_root_blog_id() ); 668 } 669 665 670 // Get upload directory information from current site 666 671 $upload_dir = wp_upload_dir(); … … 672 677 } else { 673 678 $basedir = $upload_dir['basedir']; 674 675 // If multisite, and current blog does not match root blog, make adjustments676 if ( is_multisite() && bp_get_root_blog_id() != get_current_blog_id() )677 $basedir = get_blog_option( bp_get_root_blog_id(), 'upload_path' );678 679 } 680 681 // Will bail if not switched 682 restore_current_blog(); 679 683 } 680 684
Note: See TracChangeset
for help on using the changeset viewer.