Skip to:
Content

BuddyPress.org

Changeset 3141


Ignore:
Timestamp:
07/21/2010 07:06:12 PM (14 years ago)
Author:
johnjamesjacoby
Message:

Do not assume upload_path for avatars, even on multisite. Props boonebgorges and PeterAnselmo.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/1.2/bp-core/bp-core-avatars.php

    r3131 r3141  
    546546    // If multisite, and current blog does not match root blog, make adjustments
    547547    if ( bp_core_is_multisite() && BP_ROOT_BLOG != $current_blog->blog_id )
    548         $upload_dir['basedir'] = WP_CONTENT_DIR . '/blogs.dir/' . BP_ROOT_BLOG . '/files/';
     548        $upload_dir['basedir'] = get_blog_option( BP_ROOT_BLOG, 'upload_path' );
    549549
    550550    return apply_filters( 'bp_core_avatar_upload_path', $upload_dir['basedir'] );
Note: See TracChangeset for help on using the changeset viewer.