Making WordPress.org


Ignore:
Timestamp:
03/08/2017 12:06:02 AM (8 years ago)
Author:
obenland
Message:

Plugin Directory: Fix display of plugin contributors

  • Re-uses the contributor widget in the shortcode
  • Displays committer-, contributor-, and code-browse-lists correctly
  • Fixes the read-more link for contributor list in admin

See #2111.
Fixes #2567

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/widgets/class-committers.php

    r5117 r5121  
    4141        ) );
    4242
     43        $title = apply_filters( 'widget_title', empty( $instance['title'] ) ? __( 'Committers', 'wporg-plugins' ) : $instance['title'], $instance, $this->id_base );
     44
    4345        echo $args['before_widget'];
     46        echo $args['before_title'] . $title . $args['after_title'];
    4447        ?>
    45         <h3><?php _e( 'Committers', 'wporg-plugins' ); ?></h3>
    4648
    4749        <ul id="committer-list" class="committer-list">
     
    5557                    <small>
    5658                        <?php echo current_user_can( 'plugin_review' ) ? esc_html( $committer->user_email ) . ' ' : ''; ?>
    57                         <button class="button-link spinner remove"><?php _e( 'Remove', 'wporg-plugins' ); ?></button>
     59                        <button class="button-link remove"><?php _e( 'Remove', 'wporg-plugins' ); ?></button>
    5860                    </small>
    5961                </li>
     
    8183            </li>
    8284        </script>
     85
    8386        <?php
    8487        echo $args['after_widget'];
Note: See TracChangeset for help on using the changeset viewer.