Making WordPress.org

Changeset 14280


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

Switch to using sha256 Gravatar URLs.

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

Location:
sites/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/api.wordpress.org/public_html/dotorg/slack/announce.php

    r2103 r14280  
    2323    ) );
    2424
    25     $hash = md5( strtolower( trim( $email ) ) );
     25    $hash = hash( 'sha256', strtolower( trim( $email ) ) );
    2626    return sprintf( 'https://secure.gravatar.com/avatar/%s?s=96d=mm&r=G&%s', $hash, time() );
    2727}
  • 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.