Changeset 4198
- Timestamp:
- 10/07/2016 05:41:24 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/shortcodes/class-developers.php
r3510 r4198 16 16 static function display() { 17 17 $post = get_post(); 18 $committers = Tools::get_plugin_committers( $post->post_name ); 19 $contributors = get_post_meta( $post->ID, 'contributors', true ); 20 $contributors = array_unique( array_merge( $committers, $contributors ) ); 18 19 if ( $contributors = get_the_terms( $post->ID, 'plugin_contributors' ) ) { 20 $contributors = wp_list_pluck( $contributors, 'slug' ); 21 } else { 22 $contributors = array(); 23 if ( $author = get_user_by( 'id', $post->post_author ) ) { 24 $contributors[] = $author->user_nicename; 25 } 26 } 21 27 sort( $contributors, SORT_NATURAL ); 22 28 23 29 $output = '<ul class="plugin-developers">'; 24 30 foreach ( $contributors as $contributor_slug ) { 25 $contributor = get_user_by( ' login', $contributor_slug );31 $contributor = get_user_by( 'slug', $contributor_slug ); 26 32 if ( ! $contributor ) { 27 33 continue;
Note: See TracChangeset
for help on using the changeset viewer.