Making WordPress.org


Ignore:
Timestamp:
06/27/2019 12:14:56 AM (5 years ago)
Author:
SergeyBiryukov
Message:

Theme Directory: Don't display the byline if theme author's display name is empty.

Props jonoaldersonwp.
Fixes #4551.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-themes/view-templates/theme-single.php

    r8895 r8998  
    1717            <div>
    1818                <h3 class="theme-name entry-title" itemprop="name">{{{ data.name }}}</h3>
     19                <# if ( data.author.display_name ) { #>
    1920                <h4 class="theme-author"><?php printf( _x( 'By %s', 'theme author', 'wporg-themes' ), '<a href="{{{ data.path }}}author/{{ data.author.user_nicename }}/"><span class="author" itemprop="author">{{{ data.author.display_name }}}</span></a>' ); ?></h4>
     21                <# } #>
     22
    2023                <# if ( data.show_favorites && data.is_favorited ) { #>
    2124                    <span class="dashicons dashicons-heart favorite favorited"></span>
Note: See TracChangeset for help on using the changeset viewer.