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/theme-single.php

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