Making WordPress.org


Ignore:
Timestamp:
06/27/2019 12:14:56 AM (6 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-preview.php

    r1481 r8998  
    1010            <div class="install-theme-info">
    1111                <h3 class="theme-name">{{ data.name }}</h3>
     12                <# if ( data.author.display_name ) { #>
    1213                <span class="theme-by"><?php printf( _x( 'By %s', 'theme author', 'wporg-themes' ), '{{ data.author.display_name }}' ); ?></span>
     14                <# } #>
    1315
    1416                <img class="theme-screenshot" src="{{ data.screenshot_url }}?w=520&strip=all" alt="" />
Note: See TracChangeset for help on using the changeset viewer.