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.php

    r1489 r8998  
    99        <?php } ?>
    1010        <span class="more-details"><?php _ex( 'More Info', 'theme', 'wporg-themes' ); ?></span>
     11        <?php if ( $theme->author->display_name ) { ?>
    1112        <div class="theme-author"><?php printf( _x( 'By %s', 'theme author', 'wporg-themes' ), '<span class="author">' . esc_html( $theme->author->display_name ) . '</span>' ); ?></div>
     13        <?php } ?>
    1214        <h3 class="theme-name entry-title"><?php echo esc_html( $theme->name ); ?></h3>
    1315    </a>
Note: See TracChangeset for help on using the changeset viewer.