Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
02/09/2015 09:25:56 AM (7 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/tests/phpunit/testcases/core/avatars.php

    r9381 r9455  
    152152            // This test has the slight odor of hokum since it recreates so much code that could be changed at any time.
    153153            $bp = buddypress();
    154             // Set host based on if using ssl
    155             $host = 'http://gravatar.com/avatar/';
    156             if ( is_ssl() ) {
    157                 $host = 'https://secure.gravatar.com/avatar/';
    158             }
     154            $host = '//www.gravatar.com/avatar/';
     155
    159156            // Set expected gravatar type
    160157            if ( empty( $bp->grav_default->{$this->params['object']} ) ) {
Note: See TracChangeset for help on using the changeset viewer.