Make WordPress Core


Ignore:
Timestamp:
06/18/2015 06:35:04 PM (9 years ago)
Author:
wonderboymusic
Message:

Make sure that all Gravatars are generated by get_avatar() or at least run through apply_filters( 'get_avatar', $avatar ) for the sake of extensibility.

Props miqrogroove, GlennM, SergeyBiryukov.
Fixes #22650.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/link-template.php

    r32606 r32845  
    36513651    );
    36523652
    3653     $url = sprintf( 'http://%d.gravatar.com/avatar/%s', $gravatar_server, $email_hash );
     3653    if ( is_ssl() ) {
     3654        $url = 'https://secure.gravatar.com/avatar/' . $email_hash;
     3655    } else {
     3656        $url = sprintf( 'http://%d.gravatar.com/avatar/%s', $gravatar_server, $email_hash );
     3657    }
    36543658
    36553659    $url = add_query_arg(
Note: See TracChangeset for help on using the changeset viewer.