Changeset 2925 for trunk/bp-core/bp-core-avatars.php
- Timestamp:
- 04/15/2010 11:59:40 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core/bp-core-avatars.php
r2729 r2925 155 155 } 156 156 157 if ( is_ssl() ) 158 $host = 'https://secure.gravatar.com/avatar/'; 159 else 160 $host = 'http://www.gravatar.com/avatar/'; 161 157 162 $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; 159 164 160 165 return apply_filters( 'bp_core_fetch_avatar', "<img src='{$gravatar}' alt='{$alt}' class='{$class}'{$css_id}{$html_width}{$html_height} />", $params ); … … 389 394 if ( !$path = get_option( 'upload_path' ) ) 390 395 $path = WP_CONTENT_DIR . '/uploads'; 396 else 397 $path = ABSPATH . $path; 391 398 } 392 399
Note: See TracChangeset
for help on using the changeset viewer.