Skip to:
Content

BuddyPress.org

Changeset 1829


Ignore:
Timestamp:
09/08/2009 09:20:41 PM (15 years ago)
Author:
apeatling
Message:

Replacing ABSPATH with WP_CONTENT_DIR in avatar upload folder creation to fix issues where WPMU is loaded from a sub directory.

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-core/bp-core-signup.php

    r1714 r1829  
    191191   
    192192    $path = get_blog_option( BP_ROOT_BLOG, 'upload_path' );
    193     $newdir = path_join( ABSPATH, $path );
     193    $newdir = WP_CONTENT_DIR . str_replace( 'wp-content', '', $path );
    194194    $newdir .= '/avatars/signups/' . $bp->signup->avatar_dir;
    195195
  • trunk/bp-groups.php

    r1826 r1829  
    19331933       
    19341934    $path  = get_blog_option( BP_ROOT_BLOG, 'upload_path' );
    1935     $newdir = path_join( ABSPATH, $path );
     1935    $newdir = WP_CONTENT_DIR . str_replace( 'wp-content', '', $path );
    19361936    $newdir .= '/group-avatars/' . $group_id;
    19371937
  • trunk/bp-xprofile.php

    r1813 r1829  
    10251025
    10261026    $path  = get_blog_option( BP_ROOT_BLOG, 'upload_path' );
    1027     $newdir = path_join( ABSPATH, $path );
     1027    $newdir = WP_CONTENT_DIR . str_replace( 'wp-content', '', $path );
    10281028    $newdir .= '/avatars/' . $user_id;
    10291029
Note: See TracChangeset for help on using the changeset viewer.