Make WordPress Core

Ticket #54275: 54275.diff

File 54275.diff, 899 bytes (added by sayedulsayem, 3 years ago)

patch added

  • src/wp-admin/includes/credits.php

    diff --git a/src/wp-admin/includes/credits.php b/src/wp-admin/includes/credits.php
    index c6ff5e79ea..833b676cec 100644
    a b function wp_credits_section_list( $credits = array(), $slug = '' ) { 
    154154                                $data2x = get_avatar_data( $person_data[1] . '@md5.gravatar.com', array( 'size' => $size * 2 ) );
    155155                                echo '<span class="wp-person-avatar"><img src="' . esc_url( $data['url'] ) . '" srcset="' . esc_url( $data2x['url'] ) . ' 2x" class="gravatar" alt="" /></span>' . "\n";
    156156                                echo esc_html( $person_data[0] ) . "</a>\n\t";
    157                                 if ( ! $compact ) {
     157                                if ( ! $compact && ! empty( $person_data[3] ) ) {
    158158                                        // phpcs:ignore WordPress.WP.I18n.LowLevelTranslationFunction,WordPress.WP.I18n.NonSingularStringLiteralText
    159159                                        echo '<span class="title">' . translate( $person_data[3] ) . "</span>\n";
    160160                                }