Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
04/15/2010 11:59:40 AM (14 years ago)
Author:
apeatling
Message:

Merging 1.2 branch with trunk.

File:
1 edited

Legend:

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

    r2729 r2925  
    155155        }
    156156
     157        if ( is_ssl() )
     158            $host = 'https://secure.gravatar.com/avatar/';
     159        else
     160            $host = 'http://www.gravatar.com/avatar/';
     161
    157162        $email = apply_filters( 'bp_core_gravatar_email', $email, $item_id, $object );
    158         $gravatar = apply_filters( 'bp_gravatar_url', 'http://www.gravatar.com/avatar/' ) . md5( $email ) . '?d=' . $default_grav . '&s=' . $grav_size;
     163        $gravatar = apply_filters( 'bp_gravatar_url', $host ) . md5( $email ) . '?d=' . $default_grav . '&s=' . $grav_size;
    159164
    160165        return apply_filters( 'bp_core_fetch_avatar', "<img src='{$gravatar}' alt='{$alt}' class='{$class}'{$css_id}{$html_width}{$html_height} />", $params );
     
    389394        if ( !$path = get_option( 'upload_path' ) )
    390395            $path = WP_CONTENT_DIR . '/uploads';
     396        else
     397            $path = ABSPATH . $path;
    391398    }
    392399
Note: See TracChangeset for help on using the changeset viewer.