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/themes/pub/wporg-plugins/template-parts/plugin-sidebar-admin.php

    r4602 r5121  
    1717the_widget( 'WordPressdotorg\Plugin_Directory\Widgets\Meta',            array(), $widget_args );
    1818the_widget( 'WordPressdotorg\Plugin_Directory\Widgets\Committers',      array(), $widget_args );
    19 the_widget( 'WordPressdotorg\Plugin_Directory\Widgets\Contributors',    array(), $widget_args );
     19the_widget( 'WordPressdotorg\Plugin_Directory\Widgets\Contributors',    array(), array(
     20    'before_title' => '<h4 class="widget-title">',
     21    'after_title'  => '</h4>',
     22    'before_widget' => '<div id="plugin-contributors" class="widget plugin-contributors read-more" aria-expanded="false">',
     23    'after_widget' => sprintf( '</div><button type="button" class="button-link section-toggle" aria-controls="plugin-contributors">%s</button>', __( 'View more', 'wporg-plugins' ) ),
     24) );
Note: See TracChangeset for help on using the changeset viewer.