Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
02/26/2012 12:55:08 PM (8 years ago)
Author:
djpaul
Message:

Specify Gravatar rating when fetching a Gravatar. Fixes #2589

File:
1 edited

Legend:

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

    r5762 r5844  
    354354        $email    = apply_filters( 'bp_core_gravatar_email', $email, $item_id, $object );
    355355        $gravatar = apply_filters( 'bp_gravatar_url', $host ) . md5( strtolower( $email ) ) . '?d=' . $default_grav . '&s=' . $grav_size;
     356
     357        // Gravatar rating; http://bit.ly/89QxZA
     358        $rating = get_option( 'avatar_rating' );
     359        if ( ! empty( $rating ) )
     360            $gravatar .= "&r={$rating}";
    356361
    357362    // No avatar was found, and we've been told not to use a gravatar.
Note: See TracChangeset for help on using the changeset viewer.