Changeset 3253
- Timestamp:
- 05/25/2016 06:36:16 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/shortcodes/class-developers.php
r3222 r3253 14 14 */ 15 15 static function display() { 16 $post = get_post(); 17 $committers = Tools::get_plugin_committers( $post->post_name ); 16 $post = get_post(); 17 $committers = Tools::get_plugin_committers( $post->post_name ); 18 $contributors = get_post_meta( $post->ID, 'contributors', true ); 19 $contributors = array_unique( array_merge( $committers, $contributors ) ); 20 sort( $contributors, SORT_NATURAL ); 18 21 19 22 $output = '<ul class="plugin-developers">'; 20 foreach ( $co mmitters as $committer_slug ) {21 $co mmitter = get_user_by( 'slug', $committer_slug );23 foreach ( $contributors as $contributor_slug ) { 24 $contributor = get_user_by( 'login', $contributor_slug ); 22 25 23 $output .= '<li>' . get_avatar( $co mmitter->ID, 32 ) . $committer->display_name. '</li>';26 $output .= '<li>' . get_avatar( $contributor->ID, 32 ) . utf8_encode( $contributor->display_name ) . '</li>'; 24 27 } 25 28 $output .= '</ul>';
Note: See TracChangeset
for help on using the changeset viewer.