WordPress.org

Make WordPress Core

Ticket #37454: 37454.diff

File 37454.diff, 627 bytes (added by neoxx, 5 years ago)
  • link-template.php

     
    39923992                'r' => $args['rating'],
    39933993        );
    39943994
    3995         if ( is_ssl() ) {
     3995        if ( is_ssl() || $args['scheme'] === 'https' ) {
    39963996                $url = 'https://secure.gravatar.com/avatar/' . $email_hash;
    39973997        } else {
    39983998                $url = sprintf( 'http://%d.gravatar.com/avatar/%s', $gravatar_server, $email_hash );
     
    40004000
    40014001        $url = add_query_arg(
    40024002                rawurlencode_deep( array_filter( $url_args ) ),
    4003                 set_url_scheme( $url, $args['scheme'] )
     4003                $url
    40044004        );
    40054005
    40064006        /**