Making WordPress.org

Changeset 11804


Ignore:
Timestamp:
04/27/2022 11:11:50 AM (23 months ago)
Author:
dd32
Message:

Plugin Directory: Fallback to the user nicename when a contributor doesn't have a display_name set.

Fixes #6294.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/widgets/class-contributors.php

    r10897 r11804  
    6464                <?php echo get_avatar( $contributor->ID, 32 ); ?>
    6565                <a href="<?php echo esc_url( "https://profiles.wordpress.org/{$contributor->user_nicename}/" ); ?>">
    66                     <?php echo Template::encode( $contributor->display_name ); ?>
     66                    <?php echo Template::encode( $contributor->display_name ?: $contributor->user_nicename ); ?>
    6767                </a>
    6868            </li>
Note: See TracChangeset for help on using the changeset viewer.