Making WordPress.org

Changeset 8999


Ignore:
Timestamp:
06/27/2019 06:35:14 AM (5 years ago)
Author:
dd32
Message:

Theme Directory: When a users display_name is blank (historical reasons..) fall back to the user nicename.

Fixes #4551.

File:
1 edited

Legend:

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

    r8913 r8999  
    638638                'profile'       => 'https://profiles.wordpress.org/' . $author->user_nicename,
    639639                'avatar'        => 'https://secure.gravatar.com/avatar/' . md5( $author->user_email ) . '?s=96&d=monsterid&r=g',
    640                 'display_name'  => $author->display_name,
     640                'display_name'  => $author->display_name ?: $author->user_nicename,
    641641            );
    642642        } else {
Note: See TracChangeset for help on using the changeset viewer.