Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
02/09/2015 09:25:56 AM (11 years ago)
Author:
djpaul
Message:

Core: use //www.gravatar.com for all image links.

www.gravatar.com supports HTTP and HTTPs, and by switching to protocol-relative URLs, we can simply the code by removing a number of is_ssl() checks.

Fixes #6135

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-members/bp-members-template.php

    r9412 r9455  
    22042204             * @param string $value Gravatar url to use.
    22052205             */
    2206             $gravatar_url    = apply_filters( 'bp_gravatar_url', 'http://www.gravatar.com/avatar/' );
     2206            $gravatar_url    = apply_filters( 'bp_gravatar_url', '//www.gravatar.com/avatar/' );
    22072207            $md5_lcase_email = md5( strtolower( bp_get_signup_email_value() ) );
    22082208            $gravatar_img    = '<img src="' . $gravatar_url . $md5_lcase_email . '?d=' . $default_grav . '&amp;s=' . $size . '" width="' . $size . '" height="' . $size . '" alt="' . $alt . '" class="' . $class . '" />';
Note: See TracChangeset for help on using the changeset viewer.