Making WordPress.org


Ignore:
Timestamp:
12/16/2024 02:18:04 AM (8 weeks ago)
Author:
dd32
Message:

Switch to using sha256 Gravatar URLs.

Props shenyanzhi.
Closes https://github.com/WordPress/wordpress.org/pull/395.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/theme-directory/class-themes-api.php

    r14024 r14280  
    711711                'user_nicename' => $author->user_nicename,
    712712                'profile'       => 'https://profiles.wordpress.org/' . $author->user_nicename . '/',
    713                 'avatar'        => 'https://secure.gravatar.com/avatar/' . md5( $author->user_email ) . '?s=96&d=monsterid&r=g',
     713                'avatar'        => 'https://secure.gravatar.com/avatar/' . hash( 'sha256', $author->user_email ) . '?s=96&d=monsterid&r=g',
    714714                'display_name'  => $author->display_name ?: $author->user_nicename,
    715715
Note: See TracChangeset for help on using the changeset viewer.