WordPress.org

Making WordPress.org

Changeset 4407


Ignore:
Timestamp:
11/23/2016 10:37:00 PM (5 years ago)
Author:
dd32
Message:

Plugin Directory: Add a fallback for the author name in the plugin cards in the event the plugin has no plugin header data.

See #2183.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/template-parts/plugin.php

    r4393 r4407  
    3131    <footer>
    3232        <span class="plugin-author">
    33             <i class="dashicons dashicons-admin-users"></i> <?php echo esc_html( get_post_meta( get_the_ID(), 'header_author', true ) ); ?>
     33            <i class="dashicons dashicons-admin-users"></i> <?php echo esc_html( get_post_meta( get_the_ID(), 'header_author', true ) ?: get_the_author() ); ?>
    3434        </span>
    3535        <span class="active-installs">
Note: See TracChangeset for help on using the changeset viewer.