Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
12/30/2009 03:36:28 PM (17 years ago)
Author:
apeatling
Message:

Fixing upload path when one has not been set.

File:
1 edited

Legend:

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

    r2209 r2229  
    370370        if ( bp_core_is_multiblog_install() )
    371371                $path = ABSPATH . get_blog_option( BP_ROOT_BLOG, 'upload_path' );
    372         else
    373                 $path = get_option( 'upload_path' );
     372        else {
     373                if ( !$path = get_option( 'upload_path' ) )
     374                        $path = WP_CONTENT_DIR . '/uploads';
     375        }
    374376
    375377        return apply_filters( 'bp_core_avatar_upload_path', $path );
Note: See TracChangeset for help on using the changeset viewer.